Compatibility fixes.
This commit is contained in:
parent
0407a731de
commit
1f9630b394
@ -70,7 +70,7 @@ function &serendipity_printTrackbacks(&$trackbacks) {
|
||||
function &serendipity_smarty_fetch($block, $file, $echo = false) {
|
||||
global $serendipity;
|
||||
|
||||
$output =& $serendipity['smarty']->fetch('file:'. serendipity_getTemplateFile($file, 'serendipityPath'), null, null, null, ($echo === true && $serendipity['smarty_raw_mode']));
|
||||
$output = $serendipity['smarty']->fetch('file:'. serendipity_getTemplateFile($file, 'serendipityPath'), null, null, null, ($echo === true && $serendipity['smarty_raw_mode']));
|
||||
|
||||
$serendipity['smarty']->assignByRef($block, $output);
|
||||
|
||||
|
@ -135,7 +135,7 @@ class serendipity_event_bbcode extends serendipity_event
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
||||
function uninstall() {
|
||||
function uninstall(&$propbag) {
|
||||
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ class serendipity_event_contentrewrite extends serendipity_event
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
||||
function uninstall() {
|
||||
function uninstall(&$propbag) {
|
||||
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
@ -229,7 +229,7 @@ class serendipity_event_contentrewrite extends serendipity_event
|
||||
<?php
|
||||
}
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
$hooks = &$bag->get('event_hooks');
|
||||
|
@ -103,7 +103,7 @@ class serendipity_event_creativecommons extends serendipity_event {
|
||||
$title = $this->title;
|
||||
}
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
$license_data = $this->get_license_data();
|
||||
|
@ -55,7 +55,7 @@ class serendipity_event_emoticate extends serendipity_event
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
||||
function uninstall() {
|
||||
function uninstall(&$propbag) {
|
||||
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
@ -151,7 +151,7 @@ class serendipity_event_emoticate extends serendipity_event
|
||||
}
|
||||
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
$hooks = &$bag->get('event_hooks');
|
||||
|
||||
|
@ -134,7 +134,7 @@ class serendipity_event_mailer extends serendipity_event
|
||||
$title = $this->title;
|
||||
}
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
$hooks = &$bag->get('event_hooks');
|
||||
|
@ -88,7 +88,7 @@ class serendipity_event_nl2br extends serendipity_event
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
||||
function uninstall() {
|
||||
function uninstall(&$propbag) {
|
||||
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
@ -156,7 +156,7 @@ class serendipity_event_nl2br extends serendipity_event
|
||||
return preg_replace('~\001(\d+)~e', '$_buf[$1]', $text);
|
||||
}
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
static $markup = null;
|
||||
static $isolate = null;
|
||||
|
@ -54,7 +54,7 @@ class serendipity_event_s9ymarkup extends serendipity_event
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
||||
function uninstall() {
|
||||
function uninstall(&$propbag) {
|
||||
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
@ -74,7 +74,7 @@ class serendipity_event_s9ymarkup extends serendipity_event
|
||||
}
|
||||
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
$hooks = &$bag->get('event_hooks');
|
||||
|
@ -203,7 +203,7 @@ class serendipity_event_searchhighlight extends serendipity_event
|
||||
}
|
||||
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
$this->uri = $_SERVER['HTTP_REFERER'];
|
||||
|
@ -1021,7 +1021,7 @@ class serendipity_event_spartacus extends serendipity_event
|
||||
}
|
||||
}
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
$hooks = &$bag->get('event_hooks');
|
||||
|
@ -86,7 +86,7 @@ class serendipity_event_statistics extends serendipity_event
|
||||
$title = $this->title;
|
||||
}
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
$hooks = &$bag->get('event_hooks');
|
||||
@ -982,7 +982,7 @@ class serendipity_event_statistics extends serendipity_event
|
||||
|
||||
}
|
||||
|
||||
function uninstall(){
|
||||
function uninstall(&$propbag){
|
||||
|
||||
$this->dropTables();
|
||||
|
||||
|
@ -33,7 +33,7 @@ class serendipity_event_templatechooser extends serendipity_event
|
||||
$title = $this->title;
|
||||
}
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
$hooks = &$bag->get('event_hooks');
|
||||
|
@ -69,7 +69,7 @@ class serendipity_event_textile extends serendipity_event
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
||||
function uninstall() {
|
||||
function uninstall(&$propbag) {
|
||||
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
@ -102,7 +102,7 @@ class serendipity_event_textile extends serendipity_event
|
||||
}
|
||||
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
$hooks = &$bag->get('event_hooks');
|
||||
|
@ -526,7 +526,7 @@ class serendipity_event_textwiki extends serendipity_event
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
||||
function uninstall() {
|
||||
function uninstall(&$propbag) {
|
||||
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
@ -566,7 +566,7 @@ class serendipity_event_textwiki extends serendipity_event
|
||||
}
|
||||
}
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
$hooks = &$bag->get('event_hooks');
|
||||
|
@ -57,7 +57,7 @@ class serendipity_event_trackexits extends serendipity_event
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
||||
function uninstall() {
|
||||
function uninstall(&$propbag) {
|
||||
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ class serendipity_event_weblogping extends serendipity_event
|
||||
$title = PLUGIN_EVENT_WEBLOGPING_TITLE;
|
||||
}
|
||||
|
||||
function event_hook($event, &$bag, &$eventData) {
|
||||
function event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
$hooks = &$bag->get('event_hooks');
|
||||
|
@ -73,7 +73,7 @@ class serendipity_event_xhtmlcleanup extends serendipity_event
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
||||
function uninstall() {
|
||||
function uninstall(&$propbag) {
|
||||
serendipity_plugin_api::hook_event('backend_cache_purge', $this->title);
|
||||
serendipity_plugin_api::hook_event('backend_cache_entries', $this->title);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user