From: Brion Vibber Date: Sun, 11 Dec 2005 02:46:25 +0000 (+0000) Subject: Avar poked in these hooks as a demo for Tom, but they aren't probably X-Git-Tag: 1.6.0~972 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=4c6866766050d4b68f965a376dc88ca25fa87f32;p=lhc%2Fweb%2Fwiklou.git Avar poked in these hooks as a demo for Tom, but they aren't probably 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. --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 7ef7fe31b8..75f3eb0081 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -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 { diff --git a/includes/SpecialListusers.php b/includes/SpecialListusers.php index 54a0465d0a..49a3c11b8d 100644 --- a/includes/SpecialListusers.php +++ b/includes/SpecialListusers.php @@ -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();