if (!function_exists('wikiEncodedVersion')) { function wikiEncodedVersion() { global $wgVersion; $versionelts = explode(".", $wgVersion); $version = 0; for ($i = 0; $i < 3; $i++) { $version = $version * 100; if (is_numeric($versionelts[$i])) { $version += $versionelts[$i]; } } return $version; } } $mgVersion = wikiEncodedVersion(); define('ART122-5 MULTILANGUEMANAGER', 1); /** * This is the configuration file for this extension */ require_once dirname(__FILE__) . "/MultiLanguageManager_setup.php"; /** * The autoload class */ $wgAutoloadClasses['MultiLanguageManager'] = dirname(__FILE__) . '/MultiLanguageManager_body.php'; $wgAutoloadClasses['MultiLanguageManager_controller'] = dirname(__FILE__) . '/MultiLanguageManager_controller.php'; $wgAutoloadClasses['MultiLanguageManager_template'] = dirname(__FILE__) . '/MultiLanguageManager_template.php'; /** * The Credits Extension */ if ($mgVersion < 10700) {
function testMlChangeLanguageForGuest() { if (wikiEncodedVersion() >= 10800) { } $this->assertTrue(TRUE); }