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