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/RequestContext.php | |
parent | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (diff) |
Update to MediaWiki 1.18.1
Diffstat (limited to 'includes/RequestContext.php')
-rw-r--r-- | includes/RequestContext.php | 25 |
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 |