Index: trunk/phase3/includes/specials/SpecialAllpages.php |
— | — | @@ -320,7 +320,7 @@ |
321 | 321 | } |
322 | 322 | |
323 | 323 | $res = $dbr->select( 'page', |
324 | | - array( 'page_namespace', 'page_title', 'page_is_redirect' ), |
| 324 | + array( 'page_namespace', 'page_title', 'page_is_redirect', 'page_id' ), |
325 | 325 | $conds, |
326 | 326 | __METHOD__, |
327 | 327 | array( |
— | — | @@ -333,10 +333,10 @@ |
334 | 334 | if( $res->numRows() > 0 ) { |
335 | 335 | $out = Xml::openElement( 'table', array( 'class' => 'mw-allpages-table-chunk' ) ); |
336 | 336 | while( ( $n < $this->maxPerPage ) && ( $s = $res->fetchObject() ) ) { |
337 | | - $t = Title::makeTitle( $s->page_namespace, $s->page_title ); |
| 337 | + $t = Title::newFromRow( $s ); |
338 | 338 | if( $t ) { |
339 | 339 | $link = ( $s->page_is_redirect ? '<div class="allpagesredirect">' : '' ) . |
340 | | - $sk->linkKnown( $t, htmlspecialchars( $t->getText() ) ) . |
| 340 | + $sk->link( $t ) . |
341 | 341 | ($s->page_is_redirect ? '</div>' : '' ); |
342 | 342 | } else { |
343 | 343 | $link = '[[' . htmlspecialchars( $s->page_title ) . ']]'; |