Version 1.0 ()
------------------------------------------------------------------------
+ * Fix certain plugins to correctly behave when using entry-
+ properties caching, by re-executing plugins that were not executed
+ because they "scramble" the true content. (garvinhicking)
+
Version 0.9.1 ()
------------------------------------------------------------------------
}
if ($is_cache) {
+ // Previous calls to frontend_display used the "no_scramble" atteribute to not tinker with the data.
+ // We now need to call those plugins that have not yet operated before.
+ serendipity_plugin_api::hook_event('frontend_display_cache', $eventData);
$serendipity['POST']['properties']['cache_body'] = $eventData['body'];
$serendipity['POST']['properties']['cache_extended'] = $eventData['extended'];
}
$propbag->add('description', PLUGIN_KARMA_BLAHBLAH);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
- $propbag->add('version', '1.6');
+ $propbag->add('version', '1.7');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('event_hooks', array('frontend_configure' => true, 'entry_display' => true, 'css' => true, 'event_additional_statistics' => true));
- $propbag->add('scrambles_true_content', true);
$propbag->add('groups', array('STATISTICS'));
$propbag->add('configuration', array('karma_active', 'visits_active', 'max_entrytime', 'max_votetime', 'extended_only', 'max_karmatime', 'logging'));
}
break;
case 'entry_display':
- if ($bag->get('scrambles_true_content') && is_array($addData) && isset($addData['no_scramble'])) {
- return true;
- }
-
if ($this->get_config('version') != PLUGIN_KARMA_VERSION) {
$this->checkScheme();
}
$propbag->add('description', PLUGIN_EVENT_TRACKBACK_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Serendipity Team');
- $propbag->add('version', '1.4');
+ $propbag->add('version', '1.5');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('cachable_events', array('frontend_display' => true));
- $propbag->add('event_hooks', array('frontend_display' => true));
+ $propbag->add('event_hooks', array('frontend_display' => true, 'frontend_display_cache' => true));
$propbag->add('scrambles_true_content', true);
$propbag->add('groups', array('STATISTICS'));
return true;
}
+ case 'frontend_display_cache':
$serendipity['encodeExitsCallback_entry_id'] = (int)(isset($eventData['entry_id']) ? $eventData['entry_id'] : $eventData['id']);
// Fetch all existing links from the database. They have been inserted there by our trackback-discovery.