From: garvinhicking Date: Wed, 14 Sep 2005 08:10:10 +0000 (+0000) Subject: wordwrap later in shoutbox plugin to apply full bbcode and markuip stuff X-Git-Tag: 0.9~146 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6e5401e99c7cf2e2983c6a57c9568f5a31afe102;p=s9y.git wordwrap later in shoutbox plugin to apply full bbcode and markuip stuff --- diff --git a/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php b/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php index 696b060..959d4c8 100644 --- a/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php +++ b/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php @@ -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&serendipity[comment_id]=' . $row['comment_id'] . '">' . PLUGIN_SHOUTBOX_DELETE . ''; } - $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 "" . htmlspecialchars(serendipity_strftime($dateformat, $row['stamp'])) . '
' . "\n" . $entry['comment']