Add lots more information to the siteinfo query. Based on the JS variable list.
[lhc/web/wiklou.git] / includes / PageQueryPage.php
index d9e06e0..a2091e8 100644 (file)
@@ -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 );
+                       $text = $wgContLang->convert( $title->getPrefixedText() ); 
+               return $skin->link( $title, htmlspecialchars($text), array(), array(), array('known', 'noclasses') );
        }
 }