* RevertFileAction - Use RevertAction directly
* HistoryPage - Use HistoryAction directly
* RawPage - Use RawAction directly
+* StubContLang - Use Language::factory() instead
== Compatibility ==
'Status' => 'includes/Status.php',
'StreamFile' => 'includes/StreamFile.php',
'StringPrefixSearch' => 'includes/PrefixSearch.php',
- 'StubContLang' => 'includes/StubObject.php',
'StubObject' => 'includes/StubObject.php',
'StubUserLang' => 'includes/StubObject.php',
'TablePager' => 'includes/Pager.php',
}
}
-/**
- * Stub object for the content language of this wiki. This object have to be in
- * $wgContLang global.
- *
- * @deprecated since 1.18
- */
-class StubContLang extends StubObject {
-
- function __construct() {
- wfDeprecated( __CLASS__, '1.18' );
- parent::__construct( 'wgContLang' );
- }
-
- function __call( $name, $args ) {
- return $this->_call( $name, $args );
- }
-
- /**
- * @return Language
- */
- function _newObject() {
- global $wgLanguageCode;
- $obj = Language::factory( $wgLanguageCode );
- $obj->initEncoding();
- $obj->initContLang();
- return $obj;
- }
-}
-
/**
* 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
$messageMemc = wfGetMessageCacheStorage();
$parserMemc = wfGetParserCacheStorage();
- // $wgContLang = new StubContLang;
$wgUser = new User;
$context = new RequestContext;
$wgLang = $context->getLanguage();
$messageMemc = wfGetMessageCacheStorage();
$parserMemc = wfGetParserCacheStorage();
- // $wgContLang = new StubContLang;
$wgUser = new User;
$context = new RequestContext;
$wgLang = $context->getLanguage();