Kill $wgExtraRandompageSQL
authorSam Reed <reedy@users.mediawiki.org>
Fri, 6 May 2011 23:25:57 +0000 (23:25 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 6 May 2011 23:25:57 +0000 (23:25 +0000)
Rewrote extension using them to subclass SpecialRandompage

includes/DefaultSettings.php
includes/specials/SpecialRandompage.php

index 565a7b2..7bc56f8 100644 (file)
@@ -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.
index f0d07c9..e299dc7 100644 (file)
@@ -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' ),