[pLog-svn] r7273 - in plugins/branches/lifetype-1.2/moderate: . class/action
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Thu Feb 8 10:06:10 EST 2024
Author: jondaley
Date: 2024-02-08 10:06:10 -0500 (Thu, 08 Feb 2024)
New Revision: 7273
Modified:
plugins/branches/lifetype-1.2/moderate/class/action/adminupdateunmoderatedcommentsaction.class.php
plugins/branches/lifetype-1.2/moderate/pluginmoderate.class.php
Log:
trigger events when moderating comments, so plugins like subscribe can work
Modified: plugins/branches/lifetype-1.2/moderate/class/action/adminupdateunmoderatedcommentsaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/moderate/class/action/adminupdateunmoderatedcommentsaction.class.php 2024-02-08 14:57:13 UTC (rev 7272)
+++ plugins/branches/lifetype-1.2/moderate/class/action/adminupdateunmoderatedcommentsaction.class.php 2024-02-08 15:06:10 UTC (rev 7273)
@@ -82,10 +82,14 @@
// check if it belongs to the right blog
if( $comment->getBlogId() != $this->_blogInfo->getId())
continue;
+
+ $this->notifyEvent( EVENT_PRE_COMMENT_UPDATE, Array( "comment" => &$comment ));
// everything correct, so we can update
$comment->setStatus( COMMENT_STATUS_NONSPAM );
$comments->updateComment( $comment );
+
+ $this->notifyEvent( EVENT_POST_COMMENT_UPDATE, Array( "comment" => &$comment ));
}
$this->_view = new AdminUnmoderatedCommentsview( $this->_blogInfo );
@@ -119,4 +123,4 @@
return true;
}
}
-?>
\ No newline at end of file
+?>
Modified: plugins/branches/lifetype-1.2/moderate/pluginmoderate.class.php
===================================================================
--- plugins/branches/lifetype-1.2/moderate/pluginmoderate.class.php 2024-02-08 14:57:13 UTC (rev 7272)
+++ plugins/branches/lifetype-1.2/moderate/pluginmoderate.class.php 2024-02-08 15:06:10 UTC (rev 7273)
@@ -18,7 +18,7 @@
$this->desc = "Provides moderation of comments";
$this->author = "The LifeType Project";
$this->locales = Array( "en_UK", "zh_TW", "es_ES", "fr_FR", "ca_ES" );
- $this->version = "20120511";
+ $this->version = "20240208";
if( $source == "admin" )
$this->initAdmin();
More information about the pLog-svn
mailing list