summaryrefslogtreecommitdiff
path: root/includes/RequestContext.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-01-12 13:42:29 +0100
committerPierre Schmitz <pierre@archlinux.de>2012-01-12 13:42:29 +0100
commitba0fc4fa20067528effd4802e53ceeb959640825 (patch)
tree4f62217349d3afa39dbba3f7e19dac0aecb344f6 /includes/RequestContext.php
parentca32f08966f1b51fcb19460f0996bb0c4048e6fe (diff)
Update to MediaWiki 1.18.1
Diffstat (limited to 'includes/RequestContext.php')
-rw-r--r--includes/RequestContext.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/includes/RequestContext.php b/includes/RequestContext.php
index 37617457..441a9aec 100644
--- a/includes/RequestContext.php
+++ b/includes/RequestContext.php
@@ -65,6 +65,13 @@ interface IContextSource {
public function getLang();
/**
+ * Get the Language object
+ *
+ * @return Language
+ */
+ public function getLanguage();
+
+ /**
* Get the Skin object
*
* @return Skin
@@ -234,6 +241,15 @@ class RequestContext implements IContextSource {
}
/**
+ * Get the Language object
+ *
+ * @return Language
+ */
+ public function getLanguage() {
+ return $this->getLang();
+ }
+
+ /**
* Set the Skin object
*
* @param $s Skin
@@ -379,6 +395,15 @@ abstract class ContextSource implements IContextSource {
}
/**
+ * Get the Language object
+ *
+ * @return Language
+ */
+ public function getLanguage() {
+ return $this->getContext()->getLang();
+ }
+
+ /**
* Get the Skin object
*
* @return Skin