aboutsummaryrefslogtreecommitdiff
path: root/classes/Article.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-02 21:27:50 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-02 21:27:50 +0300
commitb30f8c93a00ce1ae2c582ca4c7f1d5d8425220ee (patch)
tree59b05d952497b3fe832f17cee31c03c4b45ed0c4 /classes/Article.php
parentdc6ea08ca490c889f4e85bd697e6bdffb95a22f4 (diff)
rename article mark/publish hooks
Diffstat (limited to 'classes/Article.php')
-rw-r--r--classes/Article.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/Article.php b/classes/Article.php
index 6a3111892..c0d77123c 100644
--- a/classes/Article.php
+++ b/classes/Article.php
@@ -98,7 +98,7 @@ class Article extends Handler_Protected {
int_id = ? AND owner_uid = ?");
$sth->execute([$int_id, $owner_uid]);
- PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_PUBLISHED, [$ref_id]);
+ PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_PUBLISH_TOGGLED, [$ref_id]);
} else {
@@ -109,7 +109,7 @@ class Article extends Handler_Protected {
(?, '', NULL, NULL, ?, true, '', '', NOW(), '', false, NOW())");
$sth->execute([$ref_id, $owner_uid]);
- PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_PUBLISHED, [$ref_id]);
+ PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_PUBLISH_TOGGLED, [$ref_id]);
}
if (count($labels) != 0) {
@@ -148,7 +148,7 @@ class Article extends Handler_Protected {
(?, '', NULL, NULL, ?, true, '', '', NOW(), '', false, NOW())");
$sth->execute([$ref_id, $owner_uid]);
- PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_PUBLISHED, [$ref_id]);
+ PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_PUBLISH_TOGGLED, [$ref_id]);
if (count($labels) != 0) {
foreach ($labels as $label) {