r12031 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12030‎ | r12031 | r12032 >
Date:09:50, 9 December 2005
Author:avar
Status:old
Tags:
Comment:
* (bug 3294) A hook intended for use by extensions/Contributionsviewpermission/Contributionsviewpermission.php
Modified paths:
  • /trunk/phase3/includes/SpecialContributions.php (modified) (history)
  • /trunk/phase3/includes/SpecialListusers.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialContributions.php
@@ -216,6 +216,9 @@
217217
218218 $id = User::idFromName($nt->getText());
219219
 220+ if ( ! wfRunHooks( 'wfSpecialContributionsAfterId', array( &$this, &$id ) ) )
 221+ return;
 222+
220223 if ( 0 == $id ) {
221224 $ul = $nt->getText();
222225 } else {
Index: trunk/phase3/includes/SpecialListusers.php
@@ -209,8 +209,11 @@
210210 * $par string (optional) A group to list users from
211211 */
212212 function wfSpecialListusers( $par = null ) {
 213+ if ( ! wfRunHooks( 'wfSpecialListusers' ) )
 214+ return;
 215+
213216 global $wgRequest;
214 -
 217+
215218 list( $limit, $offset ) = wfCheckLimits();
216219
217220

Follow-up revisions

RevisionCommit summaryAuthorDate
r12032* (bug 3294) An extension that adds permissions for viewing Special:Listusers...avar09:51, 9 December 2005
r12050Avar poked in these hooks as a demo for Tom, but they aren't probably...vibber02:46, 11 December 2005

Status & tagging log