Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/tests/phpunit/MediaWikiLangTestCase.php
Ðазад
<?php use MediaWiki\MainConfigNames; /** * Base class that store and restore the Language objects */ abstract class MediaWikiLangTestCase extends MediaWikiIntegrationTestCase { /** * The annotation causes this to be called immediately before setUp() * @before */ final protected function mediaWikiLangSetUp(): void { $services = $this->getServiceContainer(); $languageCode = $this->getConfVar( MainConfigNames::LanguageCode ); $contLanguageCode = $services->getContentLanguage()->getCode(); if ( $languageCode !== $contLanguageCode ) { throw new RuntimeException( "Error in " . __METHOD__ . ': ' . "\$wgLanguageCode ('$languageCode') is different from content language code " . "('$contLanguageCode')" ); } $this->setUserLang( 'en' ); // For mainpage to be 'Main Page' $this->setContentLang( 'en' ); $services->getMessageCache()->disable(); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка