PHP 5.3 compatibility
This commit is contained in:
@ -82,7 +82,7 @@ $GLOBALS['_PEAR_error_handler_stack'] = array();
|
|||||||
* destructor, use error_log(), syslog() or something similar.
|
* destructor, use error_log(), syslog() or something similar.
|
||||||
*
|
*
|
||||||
* IMPORTANT! To use the emulated destructors you need to create the
|
* IMPORTANT! To use the emulated destructors you need to create the
|
||||||
* objects by reference: $obj =& new PEAR_child;
|
* objects by reference: $obj = new PEAR_child;
|
||||||
*
|
*
|
||||||
* @since PHP 4.0.2
|
* @since PHP 4.0.2
|
||||||
* @author Stig Bakken <ssb@php.net>
|
* @author Stig Bakken <ssb@php.net>
|
||||||
|
@ -1092,7 +1092,7 @@ class Text_Wiki {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->parseObj[$rule] =& new $class($this);
|
$this->parseObj[$rule] = new $class($this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1126,7 +1126,7 @@ class Text_Wiki {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->renderObj[$rule] =& new $class($this);
|
$this->renderObj[$rule] = new $class($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1157,7 +1157,7 @@ class Text_Wiki {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->formatObj[$format] =& new $class($this);
|
$this->formatObj[$format] = new $class($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -557,7 +557,7 @@ class serendipity_plugin_api
|
|||||||
}
|
}
|
||||||
|
|
||||||
// $serendipity['debug']['pluginload'][] = "Returning new $class_name($instance_id)";
|
// $serendipity['debug']['pluginload'][] = "Returning new $class_name($instance_id)";
|
||||||
$p =& new $class_name($instance_id);
|
$p = new $class_name($instance_id);
|
||||||
if (!is_null($authorid)) {
|
if (!is_null($authorid)) {
|
||||||
$p->serendipity_owner = $authorid;
|
$p->serendipity_owner = $authorid;
|
||||||
} else {
|
} else {
|
||||||
|
@ -619,7 +619,7 @@ class serendipity_event_textwiki extends serendipity_event
|
|||||||
include_once S9Y_PEAR_PATH . 'Text/Wiki.php';
|
include_once S9Y_PEAR_PATH . 'Text/Wiki.php';
|
||||||
|
|
||||||
if (class_exists('Text_Wiki')) {
|
if (class_exists('Text_Wiki')) {
|
||||||
$this->wiki =& new Text_Wiki;
|
$this->wiki = new Text_Wiki;
|
||||||
$this->wiki->setFormatConf('Xhtml', 'translate', null);
|
$this->wiki->setFormatConf('Xhtml', 'translate', null);
|
||||||
$this->wiki->setFormatConf('Xhtml', 'charset', LANG_CHARSET);
|
$this->wiki->setFormatConf('Xhtml', 'charset', LANG_CHARSET);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user