Rewrote extension using them to subclass SpecialRandompage
$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.
}
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' ),