Index: trunk/phase3/includes/PageQueryPage.php |
— | — | @@ -17,7 +17,9 @@ |
18 | 18 | public function formatResult( $skin, $row ) { |
19 | 19 | global $wgContLang; |
20 | 20 | $title = Title::makeTitleSafe( $row->namespace, $row->title ); |
21 | | - return $skin->makeKnownLinkObj( $title, |
22 | | - htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) ); |
| 21 | + $text = null; |
| 22 | + if ($title instanceof Title) |
| 23 | + $text = htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ); |
| 24 | + return $skin->link( $title, $text ); |
23 | 25 | } |
24 | 26 | } |