[pLog-svn] r5508 - in plog/branches/lifetype-1.2/class: action/admin plugin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu Jun 7 16:23:47 EDT 2007
Author: oscar
Date: 2007-06-07 16:23:47 -0400 (Thu, 07 Jun 2007)
New Revision: 5508
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminpreviewpostaction.class.php
plog/branches/lifetype-1.2/class/plugin/eventlist.properties.php
Log:
Thanks Jon, I didn't notice that we already had an event defined for the post preview. I've removed the one that was introduced a few revisions ago and used the one we had there since the beginning.
Modified: plog/branches/lifetype-1.2/class/action/admin/adminpreviewpostaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminpreviewpostaction.class.php 2007-06-07 12:04:43 UTC (rev 5507)
+++ plog/branches/lifetype-1.2/class/action/admin/adminpreviewpostaction.class.php 2007-06-07 20:23:47 UTC (rev 5508)
@@ -82,7 +82,7 @@
// to the class itself whence the article came from :)
// throw the EVENT_ARTICLE_PREVIEW event in case a plugin wants to do something with it
- $this->notifyEvent( EVENT_ARTICLE_PREVIEW, Array( "article" => &$article ));
+ $this->notifyEvent( EVENT_POST_PREVIEW, Array( "article" => &$article ));
// the 'random' parameter in the array is to provide the view with a random view id
// every time that we run the preview, otherwise when caching is enabled we would always be
Modified: plog/branches/lifetype-1.2/class/plugin/eventlist.properties.php
===================================================================
--- plog/branches/lifetype-1.2/class/plugin/eventlist.properties.php 2007-06-07 12:04:43 UTC (rev 5507)
+++ plog/branches/lifetype-1.2/class/plugin/eventlist.properties.php 2007-06-07 20:23:47 UTC (rev 5508)
@@ -187,6 +187,4 @@
define( "EVENT_POST_DELETE_PERMISSION", ++$eventValue );
define( "EVENT_PROCESS_BLOG_ADMIN_TEMPLATE_OUTPUT", ++$eventValue );
define( "EVENT_POST_ADMIN_PURGE_TEMP_FOLDER", ++$eventValue );
- // generation of a post preview
- define( "EVENT_ARTICLE_PREVIEW", ++$eventValue );
?>
\ No newline at end of file
More information about the pLog-svn
mailing list