From 695a40ccd0841831f3be64ead0fcc679ab006f82 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Mon, 6 Oct 2008 04:36:39 +0000 Subject: [PATCH] Pass the actual text from $row->title (escaped with htmlspecialchars) instead of null so we can see what the bad title actually is. --- includes/PageQueryPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/PageQueryPage.php b/includes/PageQueryPage.php index 98338b1d06..a2091e8b46 100644 --- a/includes/PageQueryPage.php +++ b/includes/PageQueryPage.php @@ -17,9 +17,9 @@ class PageQueryPage extends QueryPage { public function formatResult( $skin, $row ) { global $wgContLang; $title = Title::makeTitleSafe( $row->namespace, $row->title ); - $text = null; + $text = $row->title; if ($title instanceof Title) - $text = htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ); - return $skin->link( $title, $text, array(), array(), array('known', 'noclasses') ); + $text = $wgContLang->convert( $title->getPrefixedText() ); + return $skin->link( $title, htmlspecialchars($text), array(), array(), array('known', 'noclasses') ); } } -- 2.20.1