From fa74cc15d4aef732984b11d27a99913faf3f8c92 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 11 Jun 2011 08:40:35 +0000 Subject: [PATCH] And I forgot to commit this file in r89874 --- includes/SpecialPage.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 5e26824301..10e906a358 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -638,6 +638,16 @@ class SpecialPage { return $this->getContext()->getSkin(); } + /** + * Shortcut to get user's language + * + * @return Language + * @since 1.19 + */ + public function getLang() { + return $this->getContext()->getLang(); + } + /** * Return the full title, including $par * -- 2.20.1