: wfMsg( 'prefixindex' )
);
+ $showme = '';
if( isset( $par ) ){
- $this->showPrefixChunk( $namespace, $par, $from );
+ $showme = $par;
} elseif( $prefix != '' ){
- $this->showPrefixChunk( $namespace, $prefix, $from );
+ $showme = $prefix;
} elseif( $from != '' ){
- $this->showPrefixChunk( $namespace, $from, $from );
+ // For back-compat with Special:Allpages
+ $showme = $from;
+ }
+ if ($showme != '' || $namespace) {
+ $this->showPrefixChunk( $namespace, $showme, $from );
} else {
$wgOut->addHTML( $this->namespacePrefixForm( $namespace, null ) );
}