bugfix: Special:Allpages "next" link should include &namespace= parameter

This commit is contained in:
Arne Heizmann 2004-09-21 00:17:12 +00:00
parent 100316948f
commit d413d2c158
2 changed files with 6 additions and 3 deletions

View file

@ -51,7 +51,8 @@ function namespaceForm ( $namespace = 0, $from = '' ) {
$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;
}
@ -226,10 +227,11 @@ function indexShowChunk( $from, $namespace = 0 ) {
$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 />";

View file

@ -1029,7 +1029,8 @@ You can narrow down the view by selecting a log type, the user name, or the affe
# Special:Allpages
'nextpage' => 'Next page ($1)',
'articlenamespace' => '(articles)',
'allpagesformtext' => 'Display pages starting at: $1 Choose namespace: $2 $3',
'allpagesformtext1' => 'Display pages starting at: $1',
'allpagesformtext2' => 'Choose namespace: $2 $3',
'allarticles' => 'All articles',
'allpagesprev' => 'Previous',
'allpagesnext' => 'Next',