And I forgot to commit this file in r89874
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 11 Jun 2011 08:40:35 +0000 (08:40 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 11 Jun 2011 08:40:35 +0000 (08:40 +0000)
includes/SpecialPage.php

index 5e26824..10e906a 100644 (file)
@@ -638,6 +638,16 @@ class SpecialPage {
                return $this->getContext()->getSkin();
        }
 
+       /**
+        * Shortcut to get user's language
+        *
+        * @return Language
+        * @since 1.19
+        */
+       public function getLang() {
+               return $this->getContext()->getLang();
+       }
+
        /**
         * Return the full title, including $par
         *