MediaWiki REL1_34
checkExtensions.php
Go to the documentation of this file.
1<?php
24require_once __DIR__ . '/../commandLine.inc';
25require_once 'languages.inc';
26require_once 'checkLanguage.inc';
27
28if ( !class_exists( 'MessageGroups' ) || !class_exists( 'PremadeMediawikiExtensionGroups' ) ) {
29 echo <<<TEXT
30Please add the Translate extension to LocalSettings.php, and enable the extension groups:
31 require_once 'extensions/Translate/Translate.php';
32 \$wgTranslateEC = array_keys( \$wgTranslateAC );
33If you still get this message, update Translate to its latest version.
34
35TEXT;
36 exit( -1 );
37}
38
39$cli = new CheckExtensionsCLI( $options, $argv[0] );
40$cli->execute();
if(!class_exists( 'MessageGroups')||!class_exists( 'PremadeMediawikiExtensionGroups')) $cli