jenkins-bot has submitted this change and it was merged. Change subject: Replace ArticleSaveComplete hook usage ......................................................................
Replace ArticleSaveComplete hook usage Bug: T147390 Change-Id: I5c1fbde1a6ee6afc86ec28fd4190b40c5090839c --- M OAIHooks.php M extension.json 2 files changed, 3 insertions(+), 3 deletions(-) Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/OAIHooks.php b/OAIHooks.php index 3aeef7c..4391166 100644 --- a/OAIHooks.php +++ b/OAIHooks.php @@ -43,7 +43,7 @@ /** * @param $article Article * @param $user - * @param $text + * @param $content Content * @param $summary * @param $isminor * @param $iswatch @@ -52,7 +52,7 @@ * @param $revision * @return bool */ - static function updateSave( $article, $user, $text, $summary, $isminor, $iswatch, $section, $flags, $revision ) { + static function updateSave( $article, $user, $content, $summary, $isminor, $iswatch, $section, $flags, $revision ) { if( $revision ) { // Only save a record for real updates, not null edits. $id = $article->getID(); diff --git a/extension.json b/extension.json index 1538425..e09a5c4 100644 --- a/extension.json +++ b/extension.json @@ -14,7 +14,7 @@ "DeleteIds": [] }, "Hooks": { - "ArticleSaveComplete": [ + "PageContentSaveComplete": [ "OAIHook::updateSave" ], "ArticleDelete": [ -- To view, visit https://gerrit.wikimedia.org/r/315111 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5c1fbde1a6ee6afc86ec28fd4190b40c5090839c Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/OAI Gerrit-Branch: master Gerrit-Owner: Paladox <thomasmulhall...@yahoo.com> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Reedy <re...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits