X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=c928aaef07d3b786e308aa65b0115a6536d351c3;hb=47a052b797ef8ef650aa799261c984f6abc295d8;hp=7c79e729a5d7b439cacf58d67491237a3d2c5f2b;hpb=f947f103e70c75b4845bf6d09f35051ba4c974d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 7c79e729a5..c928aaef07 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1094,6 +1094,7 @@ diff view, i.e. undo, etc. $newRev: Revision object of the "new" revision &$links: Array of HTML links $oldRev: Revision object of the "old" revision (may be null) +$user: Current user object 'DiffViewHeader': Called before diff display $diff: DifferenceEngine object that's calling @@ -1554,6 +1555,8 @@ Special:Version, use this to change the list. page history view, i.e. undo, rollback, etc. $rev: Revision object &$links: Array of HTML links +$prevRev: Revision object, next in line in page history, or null +$user: Current user object 'HTMLFileCache::useFileCache': Override whether a page should be cached in file cache. @@ -1686,9 +1689,9 @@ $rc: RecentChange object that triggered url generation 'IsFileCacheable': Override the result of Article::isFileCacheable() (if true) &$article: article (object) being checked -'IsTrustedProxy': Override the result of wfIsTrustedProxy() +'IsTrustedProxy': Override the result of IP::isTrustedProxy() &$ip: IP being check -&$result: Change this value to override the result of wfIsTrustedProxy() +&$result: Change this value to override the result of IP::isTrustedProxy() 'IsUploadAllowedFromUrl': Override the result of UploadFromUrl::isAllowedUrl() $url: URL used to upload from @@ -3030,13 +3033,23 @@ $old: old title $nt: new title $user: user who does the move -'TitleMoveComplete': After moving an article (title). +'TitleMoveComplete': After moving an article (title), post-commit. &$old: old title &$nt: new title &$user: user who did the move $pageid: database ID of the page that's been moved $redirid: database ID of the created redirect $reason: reason for the move +$revision: the Revision created by the move + +'TitleMoveCompleting': After moving an article (title), pre-commit. +$old: old title +$nt: new title +$user: user who did the move +$pageid: database ID of the page that's been moved +$redirid: database ID of the created redirect +$reason: reason for the move +$revision: the Revision created by the move 'TitleQuickPermissions': Called from Title::checkQuickPermissions to add to or override the quick permissions check.