bugfix: Special:Allpages "next" link should include &namespace= parameter
authorArne Heizmann <timwi@users.mediawiki.org>
Tue, 21 Sep 2004 00:17:12 +0000 (00:17 +0000)
committerArne Heizmann <timwi@users.mediawiki.org>
Tue, 21 Sep 2004 00:17:12 +0000 (00:17 +0000)
includes/SpecialAllpages.php
languages/Language.php

index 993a77f..0525e94 100644 (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 />";
 
index a797f82..85cfa0f 100644 (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',