summaryrefslogtreecommitdiff
path: root/includes/SpecialPage.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/SpecialPage.php')
-rw-r--r--includes/SpecialPage.php9
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