From: Alex Z Date: Mon, 6 Oct 2008 04:36:39 +0000 (+0000) Subject: Pass the actual text from $row->title (escaped with htmlspecialchars) instead of... X-Git-Tag: 1.31.0-rc.0~44895 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=695a40ccd0841831f3be64ead0fcc679ab006f82;p=lhc%2Fweb%2Fwiklou.git Pass the actual text from $row->title (escaped with htmlspecialchars) instead of null so we can see what the bad title actually is. --- 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') ); } }