From 63601400e476c6cf43d985f3e7b9864681695ed4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 18 Jan 2013 16:46:04 +0100 Subject: Update to MediaWiki 1.20.2 this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024 --- includes/PageQueryPage.php | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'includes/PageQueryPage.php') diff --git a/includes/PageQueryPage.php b/includes/PageQueryPage.php index dc5e971d..01a2439f 100644 --- a/includes/PageQueryPage.php +++ b/includes/PageQueryPage.php @@ -1,4 +1,25 @@ namespace, $row->title ); - $text = $row->title; + if ( $title instanceof Title ) { $text = $wgContLang->convert( $title->getPrefixedText() ); + return Linker::linkKnown( $title, htmlspecialchars( $text ) ); + } else { + return Html::element( 'span', array( 'class' => 'mw-invalidtitle' ), + Linker::getInvalidTitleDescription( $this->getContext(), $row->namespace, $row->title ) ); } - return Linker::linkKnown( $title, htmlspecialchars( $text ) ); } } -- cgit v1.2.2