It's here! It's finally here! The skies are falling, pigs have sprouted wings, and...
[lhc/web/wiklou.git] / includes / PageQueryPage.php
index a2091e8..8390241 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
@@ -18,8 +18,9 @@ class PageQueryPage extends QueryPage {
                global $wgContLang;
                $title = Title::makeTitleSafe( $row->namespace, $row->title );
                $text = $row->title;
-               if ($title instanceof Title)
-                       $text = $wgContLang->convert( $title->getPrefixedText() ); 
-               return $skin->link( $title, htmlspecialchars($text), array(), array(), array('known', 'noclasses') );
+               if ( $title instanceof Title ) {
+                       $text = $wgContLang->convert( $title->getPrefixedText() );
+               }
+               return $skin->link( $title, htmlspecialchars( $text ), array(), array(), array('known', 'noclasses') );
        }
 }