From: Sam Reed Date: Fri, 6 May 2011 23:25:57 +0000 (+0000) Subject: Kill $wgExtraRandompageSQL X-Git-Tag: 1.31.0-rc.0~30356 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=29fc7b415fca3bacb8f7d0d33a1c6301d84c1e5c;p=lhc%2Fweb%2Fwiklou.git Kill $wgExtraRandompageSQL Rewrote extension using them to subclass SpecialRandompage --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 565a7b2f52..7bc56f8f4f 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -4985,12 +4985,6 @@ $wgSpecialPageGroups = array( $wgSortSpecialPages = true; -/** - * Filter for Special:Randompage. Part of a WHERE clause - * @deprecated as of 1.16, use the SpecialRandomGetRandomTitle hook - */ -$wgExtraRandompageSQL = false; - /** * On Special:Unusedimages, consider images "used", if they are put * into a category. Default (false) is not to count those as used. diff --git a/includes/specials/SpecialRandompage.php b/includes/specials/SpecialRandompage.php index f0d07c9d52..e299dc7734 100644 --- a/includes/specials/SpecialRandompage.php +++ b/includes/specials/SpecialRandompage.php @@ -126,13 +126,8 @@ class RandomPage extends SpecialPage { } protected function getQueryInfo( $randstr ) { - global $wgExtraRandompageSQL; $redirect = $this->isRedirect() ? 1 : 0; - if ( $wgExtraRandompageSQL ) { - $this->extra[] = $wgExtraRandompageSQL; - } - return array( 'tables' => array( 'page' ), 'fields' => array( 'page_title', 'page_namespace' ),