]> git.mjollnir.org Git - s9y.git/commitdiff
wordwrap later in shoutbox plugin to apply full bbcode and markuip stuff
authorgarvinhicking <garvinhicking>
Wed, 14 Sep 2005 08:10:10 +0000 (08:10 +0000)
committergarvinhicking <garvinhicking>
Wed, 14 Sep 2005 08:10:10 +0000 (08:10 +0000)
plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php

index 696b060339441310c797ca75c44fa274e6aa0001..959d4c81e7376d01ea8e5d59b016941760090281 100644 (file)
@@ -31,7 +31,7 @@ class serendipity_plugin_shoutbox extends serendipity_plugin
         $propbag->add('description',   PLUGIN_SHOUTBOX_BLAHBLAH);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Matthias Lange');
-        $propbag->add('version',       '1.0');
+        $propbag->add('version',       '1.01');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -183,8 +183,9 @@ class serendipity_plugin_shoutbox extends serendipity_plugin
                                   . '?serendipity[action]=shoutboxdelete&amp;serendipity[comment_id]='
                                   . $row['comment_id'] . '">' . PLUGIN_SHOUTBOX_DELETE . '</a>';
                 }
-                $entry = array('comment' => wordwrap($comment, $wordwrap, "\n",1));
+                $entry = array('comment' => $comment);
                 serendipity_plugin_api::hook_event('frontend_display', $entry);
+                $entry['comment'] = wordwrap($entry['comment'], $wordwrap, "\n", 1);
 
                 echo "<b>" . htmlspecialchars(serendipity_strftime($dateformat, $row['stamp'])) . '</b> <br />' . "\n"
                      . $entry['comment']