diff options
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 |