Avar poked in these hooks as a demo for Tom, but they aren't probably
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 11 Dec 2005 02:46:25 +0000 (02:46 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 11 Dec 2005 02:46:25 +0000 (02:46 +0000)
a good way to do it. Better probably would be manipulating the
set of special pages, which already have a spot for requiring
a permission key.

includes/SpecialContributions.php
includes/SpecialListusers.php

index 7ef7fe3..75f3eb0 100644 (file)
@@ -216,9 +216,6 @@ function wfSpecialContributions( $par = null ) {
 
        $id = User::idFromName($nt->getText());
 
-       if ( ! wfRunHooks( 'wfSpecialContributionsAfterId', array( &$this, &$id ) ) )
-               return;
-
        if ( 0 == $id ) {
                $ul = $nt->getText();
        } else {
index 54a0465..49a3c11 100644 (file)
@@ -209,11 +209,8 @@ class ListUsersPage extends QueryPage {
  * $par string (optional) A group to list users from
  */
 function wfSpecialListusers( $par = null ) {
-       if ( ! wfRunHooks( 'wfSpecialListusers' ) )
-               return;
-               
        global $wgRequest;
-       
+
        list( $limit, $offset ) = wfCheckLimits();