<?php
-
-function wfSpecialAllpages( $par=NULL )
-{
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
+
+/**
+ *
+ */
+function wfSpecialAllpages( $par=NULL ) {
global $indexMaxperpage, $toplevelMaxperpage, $wgRequest, $wgOut, $wgLang;
$indexMaxperpage = 480;
$toplevelMaxperpage = 50;
}
}
-function namespaceForm ( $namespace = 0, $from = "" )
-{
+function namespaceForm ( $namespace = 0, $from = '' ) {
global $wgLang, $wgScript;
$t = Title::makeTitle( NS_SPECIAL, "Allpages" );
$out = "<div class='namespaceselector'><form method='get' action='{$wgScript}'>";
$out .= '<input type="hidden" name="title" value="'.$t->getPrefixedText().'" />';
- $out .= wfMsg ( 'allpagesformtext', $frombox, $namespaceselect, $submitbutton );
+ $out .= wfMsg ( 'allpagesformtext1', $frombox ) . '<br />';
+ $out .= wfMsg ( 'allpagesformtext2', $namespaceselect, $submitbutton );
$out .= '</form></div>';
return $out;
}
-function indexShowToplevel ( $namespace = 0 )
-{
+function indexShowToplevel ( $namespace = 0 ) {
global $wgOut, $indexMaxperpage, $toplevelMaxperpage, $wgLang, $wgRequest, $wgUser;
$sk = $wgUser->getSkin();
$fname = "indexShowToplevel";
$wgOut->addHtml( $out2 . $out );
}
-function indexShowline( $inpoint, $outpoint, $namespace = 0 )
-{
+function indexShowline( $inpoint, $outpoint, $namespace = 0 ) {
global $wgOut, $wgLang, $wgUser;
$sk = $wgUser->getSkin();
$dbr =& wfGetDB( DB_SLAVE );
return '<tr><td align="right">'.$out.'</td></tr>';
}
-function indexShowChunk( $from, $namespace = 0 )
-{
+function indexShowChunk( $from, $namespace = 0 ) {
global $wgOut, $wgUser, $indexMaxperpage, $wgLang;
$sk = $wgUser->getSkin();
$maxPlusOne = $indexMaxperpage + 1;
$sk->makeKnownLink( $wgLang->specialPage( "Allpages" ),
wfMsg ( 'allpages' ) );
if ( ($n == $indexMaxperpage) && ($s = $dbr->fetchObject( $res )) ) {
+ $namespaceparam = $namespace ? "&namespace=$namespace" : "";
$out2 .= " | " . $sk->makeKnownLink(
$wgLang->specialPage( "Allpages" ),
wfMsg ( 'nextpage', $s->cur_title ),
- "from=" . wfUrlEncode ( $s->cur_title ) );
+ "from=" . wfUrlEncode ( $s->cur_title ) . $namespaceparam );
}
$out2 .= "</td></tr></table><hr />";