summaryrefslogtreecommitdiff
path: root/includes/PageQueryPage.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2007-05-16 20:58:53 +0000
committerPierre Schmitz <pierre@archlinux.de>2007-05-16 20:58:53 +0000
commitcecb985bee3bdd252e1b8dc0bd500b37cd52be01 (patch)
tree17266aa237742640aabee7856f0202317a45d540 /includes/PageQueryPage.php
parent0bac06c301f2a83edb0236e4c2434da16848d549 (diff)
Aktualisierung auf MediaWiki 1.10.0
Plugins angepasst und verbessert kleine Korrekturen am Design
Diffstat (limited to 'includes/PageQueryPage.php')
-rw-r--r--includes/PageQueryPage.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/includes/PageQueryPage.php b/includes/PageQueryPage.php
new file mode 100644
index 00000000..5b82ebf6
--- /dev/null
+++ b/includes/PageQueryPage.php
@@ -0,0 +1,26 @@
+<?php
+
+/**
+ * Variant of QueryPage which formats the result as a simple link to the page
+ *
+ * @package MediaWiki
+ * @addtogroup SpecialPage
+ */
+class PageQueryPage extends QueryPage {
+
+ /**
+ * Format the result as a simple link to the page
+ *
+ * @param Skin $skin
+ * @param object $row Result row
+ * @return string
+ */
+ public function formatResult( $skin, $row ) {
+ global $wgContLang;
+ $title = Title::makeTitleSafe( $row->namespace, $row->title );
+ return $skin->makeKnownLinkObj( $title,
+ htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
+ }
+}
+
+?>