[pLog-svn] r3058 - plugins/trunk/smileys
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Mar 12 21:00:14 GMT 2006
Author: oscar
Date: 2006-03-12 21:00:14 +0000 (Sun, 12 Mar 2006)
New Revision: 3058
Modified:
plugins/trunk/smileys/pluginsmileys.class.php
Log:
fixed an issue to avoid double-processing of posts
Modified: plugins/trunk/smileys/pluginsmileys.class.php
===================================================================
--- plugins/trunk/smileys/pluginsmileys.class.php 2006-03-12 20:43:59 UTC (rev 3057)
+++ plugins/trunk/smileys/pluginsmileys.class.php 2006-03-12 21:00:14 UTC (rev 3058)
@@ -123,7 +123,9 @@
// load the set
$smileys = Smileys::loadSmileySet( $smileySet );
- if( $eventType == EVENT_POST_LOADED ) {
+ // process the event, as long as it's not coming from the "editPost" action
+ // in order to avoid double processing
+ if( $eventType == EVENT_POST_LOADED && $params["from"] != "editPost" ) {
$post = $params[ "article" ];
$post = $this->_smileizePost( $post, $smileySet, $smileys );
// ...and finally put everything back together
More information about the pLog-svn
mailing list