]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - includes/PageQueryPage.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / includes / PageQueryPage.php
diff --git a/includes/PageQueryPage.php b/includes/PageQueryPage.php
deleted file mode 100644 (file)
index 892ff25..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/**
- * Variant of QueryPage which formats the result as a simple link to the page
- *
- * @ingroup SpecialPage
- */
-class PageQueryPage extends QueryPage {
-
-       /**
-        * Format the result as a simple link to the page
-        *
-        * @param $skin Skin
-        * @param $row Object: result row
-        * @return string
-        */
-       public function formatResult( $skin, $row ) {
-               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') );
-       }
-}