From 3a9e6a26a758c7c61e34f690356526f7c310bb5b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 15 Aug 2008 19:42:45 +0000 Subject: [PATCH] Support {{Special:AllPages/x}} rather than defaulting to main index --- includes/specials/SpecialAllpages.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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() ); + } } /** -- 2.20.1