<?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)
$namespace = 0;
$wgOut->setPagetitle( $namespace > 0 ?
- wfMsg( 'allinnamespace', $namespaces[$namespace] ) :
+ wfMsg( 'allinnamespace', str_replace( '_', ' ', $namespaces[$namespace] ) ) :
wfMsg( 'allarticles' )
);
$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' ),
$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 ) {