}
if ( get_class( $GLOBALS[$this->global] ) != $this->class ) {
- $fname = __METHOD__ . '-' . $this->global;
$caller = wfGetCaller( $level );
if ( ++$recursionLevel > 2 ) {
throw new MWException( "Unstub loop detected on call of "
}
/**
- * Stub object for the user language. It depends of the user preferences and
- * "uselang" parameter that can be passed to index.php. This object have to be
- * in $wgLang global.
+ * Stub object for the user language. Assigned to the $wgLang global.
*/
class StubUserLang extends StubObject {
parent::__construct( 'wgLang' );
}
- public function __call( $name, $args ) {
- return $this->_call( $name, $args );
- }
-
/**
* Call Language::findVariantLink after unstubbing $wgLang.
*