X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialAllpages.php;h=ad92298cf5bb1a8758fe8035f1e7e0aa4b95a3f2;hb=68c11363de9ff61acf9c865efed94cc5e3bfc529;hp=e4fc54b97d3d55fdb8817701b7230798f3e28db5;hpb=a520b9480cebbd8dd7bb5457ae00babb617de769;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialAllpages.php b/includes/specials/SpecialAllpages.php index e4fc54b97d..ad92298cf5 100644 --- a/includes/specials/SpecialAllpages.php +++ b/includes/specials/SpecialAllpages.php @@ -156,32 +156,11 @@ class SpecialAllpages extends IncludableSpecialPage { * @param bool $hideredirects Dont show redirects (default false) */ function showToplevel( $namespace = NS_MAIN, $from = '', $to = '', $hideredirects = false ) { - $output = $this->getOutput(); - - # TODO: Either make this *much* faster or cache the title index points - # in the querycache table. - - $dbr = wfGetDB( DB_SLAVE ); - $out = ""; - $where = array( 'page_namespace' => $namespace ); - - if ( $hideredirects ) { - $where['page_is_redirect'] = 0; - } - $from = Title::makeTitleSafe( $namespace, $from ); $to = Title::makeTitleSafe( $namespace, $to ); $from = ( $from && $from->isLocal() ) ? $from->getDBkey() : null; $to = ( $to && $to->isLocal() ) ? $to->getDBkey() : null; - if ( isset( $from ) ) { - $where[] = 'page_title >= ' . $dbr->addQuotes( $from ); - } - - if ( isset( $to ) ) { - $where[] = 'page_title <= ' . $dbr->addQuotes( $to ); - } - $this->showChunk( $namespace, $from, $to, $hideredirects ); }