From: Aaron Schulz Date: Fri, 15 Aug 2008 19:42:45 +0000 (+0000) Subject: Support {{Special:AllPages/x}} rather than defaulting to main index X-Git-Tag: 1.31.0-rc.0~45881 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=3a9e6a26a758c7c61e34f690356526f7c310bb5b;p=lhc%2Fweb%2Fwiklou.git Support {{Special:AllPages/x}} rather than defaulting to main index --- diff --git a/includes/specials/SpecialAllpages.php b/includes/specials/SpecialAllpages.php index d190eb6df7..d0a6effb27 100644 --- a/includes/specials/SpecialAllpages.php +++ b/includes/specials/SpecialAllpages.php @@ -2,6 +2,7 @@ /** * @file * @ingroup SpecialPage + * Note that Special:Prefixindex.php depends on this */ /** @@ -19,14 +20,18 @@ function wfSpecialAllpages( $par=NULL, $specialPage ) { $namespaces = $wgContLang->getNamespaces(); - $indexPage = new SpecialAllpages(); - $wgOut->setPagetitle( ( $namespace > 0 && in_array( $namespace, array_keys( $namespaces) ) ) ? wfMsg( 'allinnamespace', str_replace( '_', ' ', $namespaces[$namespace] ) ) : wfMsg( 'allarticles' ) ); - $indexPage->showToplevel( $namespace, $from, $to, $specialPage->including() ); + if( isset($par) ) { + $indexPage = new SpecialPrefixIndex(); + $indexPage->showPrefixChunk( $namespace, $par, $specialPage->including(), $from ); + } else { + $indexPage = new SpecialAllpages(); + $indexPage->showToplevel( $namespace, $from, $to, $specialPage->including() ); + } } /**