From 2fb7de8f48a992b5cc178f82fae8f86f697ac96c Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sun, 20 Sep 2015 10:40:15 +0200 Subject: [PATCH] Fix hooks documentation for ArticleProtect/ArticleProtectComplete The last parameter is not in code, so remove it from documentation. Was removed with a35fcb0bed5f8600b4330039b6772fa4c7a49cd0 (r12207) Change-Id: I5625f621342c2b71c56df3b3167479ec3884acf8 --- docs/hooks.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index 54ab46c171..e3a5283897 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -641,16 +641,14 @@ $popts: parser options to be used for pre-save transformation 'ArticleProtect': Before an article is protected. $wikiPage: the WikiPage being protected $user: the user doing the protection -$protect: boolean whether this is a protect or an unprotect +$protect: Set of restriction keys $reason: Reason for protect -$moveonly: boolean whether this is for move only or not 'ArticleProtectComplete': After an article is protected. $wikiPage: the WikiPage that was protected $user: the user who did the protection -$protect: boolean whether it was a protect or an unprotect +$protect: Set of restriction keys $reason: Reason for protect -$moveonly: boolean whether it was for move only or not 'ArticlePurge': Before executing "&action=purge". $wikiPage: WikiPage (object) to purge -- 2.20.1