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