From 0652e017807530dd37a8f24a21410e253bec8edd Mon Sep 17 00:00:00 2001 From: Ian Date: Sat, 21 Apr 2012 16:15:13 +0200 Subject: [PATCH] if set, $isobr now hooks to global Serendipity var to get also used by plugins, like staticpages --- .../serendipity_event_nl2br/serendipity_event_nl2br.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php b/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php index e4feaf3e..36ba631d 100644 --- a/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php +++ b/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php @@ -1,4 +1,5 @@ -add('description', PLUGIN_EVENT_NL2BR_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Serendipity Team'); - $propbag->add('version', '2.13'); + $propbag->add('version', '2.14'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -247,6 +248,8 @@ class serendipity_event_nl2br extends serendipity_event // check single entry for temporary disabled markups if( $isobr ) { + $serendipity['nl2br']['iso2br'] = true; // include to global as also used by staticpages now + if (!is_object($serendipity['smarty'])) { serendipity_smarty_init(); // if not set to avoid member function assign() on a non-object error, start Smarty templating }