From ba0fc4fa20067528effd4802e53ceeb959640825 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 12 Jan 2012 13:42:29 +0100 Subject: Update to MediaWiki 1.18.1 --- includes/SpecialPage.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'includes/SpecialPage.php') diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 0b21326a..022ef824 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -677,6 +677,15 @@ class SpecialPage { return $this->getContext()->getLang(); } + /** + * Shortcut to get user's language + * + * @return Language + */ + public function getLanguage() { + return $this->getContext()->getLang(); + } + /** * Return the full title, including $par * -- cgit v1.2.3-54-g00ecf