* Use local context to get messages
[lhc/web/wiklou.git] / includes / StubObject.php
index 141de57..795b5d6 100644 (file)
@@ -52,6 +52,7 @@ class StubObject {
         *
         * @param $name String: name of the function called
         * @param $args Array: arguments
+        * @return mixed
         */
        function _call( $name, $args ) {
                $this->_unstub( $name, 5 );
@@ -72,6 +73,7 @@ class StubObject {
         *
         * @param $name String: name of the function called
         * @param $args Array: arguments
+        * @return mixed
         */
        function __call( $name, $args ) {
                return $this->_call( $name, $args );
@@ -118,6 +120,7 @@ class StubObject {
 class StubContLang extends StubObject {
 
        function __construct() {
+               wfDeprecated( __CLASS__, '1.18' );
                parent::__construct( 'wgContLang' );
        }
 
@@ -156,6 +159,6 @@ class StubUserLang extends StubObject {
         * @return Language
         */
        function _newObject() {
-               return RequestContext::getMain()->getLang();
+               return RequestContext::getMain()->getLanguage();
        }
 }