Fix compatibility of constructors for PHP7.2 in serendipity_event_geshi.
This commit is contained in:
parent
69855f1180
commit
81f06b2ea0
|
@ -1 +1,3 @@
|
|||
0.9.9: Fix constructor for compatibility with PHP7.2
|
||||
|
||||
0.7: Upgrade to Geshi 1.0.8.1
|
||||
|
|
|
@ -588,7 +588,9 @@ class GeSHi {
|
|||
* {@link GeSHi->set_language_path()}
|
||||
* @since 1.0.0
|
||||
*/
|
||||
function GeSHi($source = '', $language = '', $path = '') {
|
||||
|
||||
function __construct($source = '', $language = '', $path = '') {
|
||||
|
||||
if (!empty($source)) {
|
||||
$this->set_source($source);
|
||||
}
|
||||
|
@ -598,6 +600,12 @@ class GeSHi {
|
|||
$this->set_language_path($path);
|
||||
}
|
||||
|
||||
|
||||
function GeSHi($source = '', $language = '', $path = '') {
|
||||
self::__construct($source, $language, $path);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns an error message associated with the last GeSHi operation,
|
||||
* or false if no error has occured
|
||||
|
|
|
@ -80,7 +80,7 @@ class serendipity_event_geshi extends serendipity_event
|
|||
'smarty' => '2.6.7',
|
||||
'php' => '4.1.0'
|
||||
));
|
||||
$propbag->add('version', '0.9');
|
||||
$propbag->add('version', '0.9.9');
|
||||
$propbag->add('event_hooks', array('frontend_display' => true, 'frontend_comment' => true));
|
||||
$propbag->add('groups', array('MARKUP'));
|
||||
|
||||
|
@ -199,4 +199,4 @@ class serendipity_event_geshi extends serendipity_event
|
|||
}
|
||||
}
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue