diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-01-12 13:42:29 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-01-12 13:42:29 +0100 |
commit | ba0fc4fa20067528effd4802e53ceeb959640825 (patch) | |
tree | 4f62217349d3afa39dbba3f7e19dac0aecb344f6 /includes/SpecialPage.php | |
parent | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (diff) |
Update to MediaWiki 1.18.1
Diffstat (limited to 'includes/SpecialPage.php')
-rw-r--r-- | includes/SpecialPage.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 0b21326a..022ef824 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -678,6 +678,15 @@ class SpecialPage { } /** + * Shortcut to get user's language + * + * @return Language + */ + public function getLanguage() { + return $this->getContext()->getLang(); + } + + /** * Return the full title, including $par * * @return Title |