From a600f8a781a5a97754d6f15ea2ccda9f3b427e3d Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 12 Feb 2012 19:40:13 +0000 Subject: [PATCH] revert core part of r111231 That one removed wfLoadExtensionMessages() . We do not want to break back compatiliblity right now. --- RELEASE-NOTES-1.20 | 1 - includes/GlobalFunctions.php | 10 ++++++++++ includes/PageQueryPage.php | 4 +--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES-1.20 b/RELEASE-NOTES-1.20 index 00d5a430fb..411d8e22bc 100644 --- a/RELEASE-NOTES-1.20 +++ b/RELEASE-NOTES-1.20 @@ -15,7 +15,6 @@ production. === New features in 1.20 === * Added TitleIsKnown hook which gets called when determining if a page exists. * (bug 32341) Add upload by URL domain limitation. -* wfLoadExtensionMessages() was removed. Deprecated in 1.16, removed in 1.20. === Bug fixes in 1.20 === * (bug 30245) Use the correct way to construct a log page title. diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 3af80ada60..dca4e141f9 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3566,6 +3566,16 @@ function wfBoolToStr( $value ) { return $value ? 'true' : 'false'; } +/** + * Load an extension messages file + * + * @deprecated since 1.16, warnings in 1.18, remove in 1.20 + * @codeCoverageIgnore + */ +function wfLoadExtensionMessages() { + wfDeprecated( __FUNCTION__, '1.16' ); +} + /** * Get a platform-independent path to the null file, e.g. /dev/null * diff --git a/includes/PageQueryPage.php b/includes/PageQueryPage.php index 40213d1dd4..dc5e971d1b 100644 --- a/includes/PageQueryPage.php +++ b/includes/PageQueryPage.php @@ -6,6 +6,7 @@ * @ingroup SpecialPage */ abstract class PageQueryPage extends QueryPage { + /** * Format the result as a simple link to the page * @@ -15,14 +16,11 @@ abstract class PageQueryPage extends QueryPage { */ 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 Linker::linkKnown( $title, htmlspecialchars( $text ) ); } } -- 2.20.1