* init empty vars to avoid PHP8 warnings * removed debug output for serendipity_session_destroy() * init smarty fixed for PHP8 * removed optional parameters for PHP 8 * 2k11 template fixes, maybe updating smarty will solve everything * init or test undefined variables for PHP 8 * remove only existing files * make sure string is not empty before comparing the first letter * check if SMARTY_DIR was already defined * use mb_language('uni') for unicode * fixed image filter bug * Smarty debug fixed in external lib * fixed archive bug * fixed entries bug * updated plugin versions Co-authored-by: surrim <surrim@happyhydro.org>
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
2.21.10: * hotfixes for PHP 8
|
||||
2.21.7: * add some newlines in output to make it better humanly readable
|
||||
2.21.6: * add missing 'u' inline element
|
||||
2.21.5: * nl2p: if the double newline contains spaces, e.g. \n \n, these
|
||||
|
@ -18,7 +18,7 @@ class serendipity_event_nl2br extends serendipity_event
|
||||
$propbag->add('description', PLUGIN_EVENT_NL2BR_DESC);
|
||||
$propbag->add('stackable', false);
|
||||
$propbag->add('author', 'Serendipity Team, Stephan Brunker');
|
||||
$propbag->add('version', '2.21.9');
|
||||
$propbag->add('version', '2.21.10');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '1.6',
|
||||
'smarty' => '2.6.7',
|
||||
@ -344,7 +344,7 @@ class serendipity_event_nl2br extends serendipity_event
|
||||
if( $isobr ) {
|
||||
$serendipity['nl2br']['iso2br'] = true; // include to global as also used by staticpages now
|
||||
|
||||
if (! array_key_exists('smarty', $serendipity) || !is_object($serendipity['smarty'])) {
|
||||
if (!is_object($serendipity['smarty'] ?? null)) {
|
||||
serendipity_smarty_init(); // if not set to avoid member function assign() on a non-object error, start Smarty templating
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user