Localisation updates for core and extension messages from translatewiki.net (2010...
[lhc/web/wiklou.git] / includes / PageQueryPage.php
index d9e06e0..892ff25 100644 (file)
@@ -17,9 +17,10 @@ class PageQueryPage extends QueryPage {
        public function formatResult( $skin, $row ) {
                global $wgContLang;
                $title = Title::makeTitleSafe( $row->namespace, $row->title );
-               $text = null;
-               if ($title instanceof Title)
-                       $text = htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ); 
-               return $skin->link( $title,     $text );
+               $text = $row->title;
+               if ( $title instanceof Title ) {
+                       $text = $wgContLang->convert( $title->getPrefixedText() );
+               }
+               return $skin->link( $title, htmlspecialchars( $text ), array(), array(), array('known', 'noclasses') );
        }
 }