From 29fc7b415fca3bacb8f7d0d33a1c6301d84c1e5c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 6 May 2011 23:25:57 +0000 Subject: [PATCH] Kill $wgExtraRandompageSQL Rewrote extension using them to subclass SpecialRandompage --- includes/DefaultSettings.php | 6 ------ includes/specials/SpecialRandompage.php | 5 ----- 2 files changed, 11 deletions(-) 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' ), -- 2.20.1