Postgres: make sure ar_len is added when updating, alpha stuff in updaters.inc
[lhc/web/wiklou.git] / includes / SpecialPrefixindex.php
index bbfc278..fc14d7a 100644 (file)
@@ -1,11 +1,8 @@
 <?php
 /**
- * @package MediaWiki
- * @subpackage SpecialPage
+ * @addtogroup SpecialPage
  */
 
-require_once 'SpecialAllpages.php';
-
 /**
  * Entry point : initialise variables and call subfunctions.
  * @param $par String: becomes "FOO" when called like Special:Prefixindex/FOO (default NULL)
@@ -27,7 +24,7 @@ function wfSpecialPrefixIndex( $par=NULL, $specialPage ) {
                $namespace = 0;
 
        $wgOut->setPagetitle( $namespace > 0 ?
-               wfMsg( 'allinnamespace', $namespaces[$namespace] ) :
+               wfMsg( 'allinnamespace', str_replace( '_', ' ', $namespaces[$namespace] ) ) :
                wfMsg( 'allarticles' )
                );
 
@@ -71,11 +68,11 @@ function showChunk( $namespace = NS_MAIN, $prefix, $including = false, $from = n
                $out = wfMsgWikiHtml( 'allpagesbadtitle' );
        } else {
                list( $namespace, $prefixKey, $prefix ) = $prefixList;
-               list( $fromNs, $fromKey, $from ) = $fromList;
+               list( /* $fromNs */, $fromKey, $from ) = $fromList;
 
                ### FIXME: should complain if $fromNs != $namespace
 
-               $dbr =& wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE );
 
                $res = $dbr->select( 'page',
                        array( 'page_namespace', 'page_title', 'page_is_redirect' ),
@@ -97,7 +94,6 @@ function showChunk( $namespace = NS_MAIN, $prefix, $including = false, $from = n
                $n = 0;
                $out = '<table style="background: inherit;" border="0" width="100%">';
 
-               $namespaces = $wgContLang->getFormattedNamespaces();
                while( ($n < $this->maxPerPage) && ($s = $dbr->fetchObject( $res )) ) {
                        $t = Title::makeTitle( $s->page_namespace, $s->page_title );
                        if( $t ) {