Index: trunk/phase3/includes/specials/SpecialPrefixindex.php |
— | — | @@ -65,8 +65,9 @@ |
66 | 66 | $showme = $par; |
67 | 67 | } elseif( $prefix != '' ) { |
68 | 68 | $showme = $prefix; |
69 | | - } elseif( $from != '' ) { |
| 69 | + } elseif( $from != '' && $ns === null ) { |
70 | 70 | // For back-compat with Special:Allpages |
| 71 | + // Don't do this if namespace is passed, so paging works when doing NS views. |
71 | 72 | $showme = $from; |
72 | 73 | } |
73 | 74 | |
— | — | @@ -216,10 +217,11 @@ |
217 | 218 | 'prefix' => $prefix |
218 | 219 | ); |
219 | 220 | |
220 | | - if( $namespace ) { |
| 221 | + if( $namespace || ($prefix == '')) { |
| 222 | + // Keep the namespace even if it's 0 for empty prefixes. |
| 223 | + // This tells us we're not just a holdover from old links. |
221 | 224 | $query['namespace'] = $namespace; |
222 | 225 | } |
223 | | - |
224 | 226 | $nextLink = Linker::linkKnown( |
225 | 227 | $self, |
226 | 228 | wfMsgHtml( 'nextpage', str_replace( '_',' ', htmlspecialchars( $s->page_title ) ) ), |