In LogFormatter:
[lhc/web/wiklou.git] / includes / PageQueryPage.php
index 98338b1..dc5e971 100644 (file)
@@ -5,7 +5,7 @@
  *
  * @ingroup SpecialPage
  */
-class PageQueryPage extends QueryPage {
+abstract class PageQueryPage extends QueryPage {
 
        /**
         * Format the result as a simple link to the page
@@ -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, array(), array(), array('known', 'noclasses') );
+               $text = $row->title;
+               if ( $title instanceof Title ) {
+                       $text = $wgContLang->convert( $title->getPrefixedText() );
+               }
+               return Linker::linkKnown( $title, htmlspecialchars( $text ) );
        }
 }