// Checking for old versions of PHP is done in Maintenance.php
// We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+
+// @codingStandardsIgnoreStart MediaWiki.Usage.DirUsage.FunctionFound
require_once dirname( __FILE__ ) . '/Maintenance.php';
+// @codingStandardsIgnoreEnd
define( 'MW_CONFIG_CALLBACK', 'Installer::overrideConfig' );
define( 'MEDIAWIKI_INSTALL', true );
global $IP;
$this->addDescription( "CLI-based MediaWiki installation and configuration.\n" .
- "Defaut options are indicated in parenthesis." );
+ "Default options are indicated in parentheses." );
$this->addArg( 'name', 'The name of the wiki (MediaWiki)', false );
$this->error( 'WARNING: You have provided the options "dbpass" and "dbpassfile". '
. 'The content of "dbpassfile" overrides "dbpass".' );
}
- wfSuppressWarnings();
+ MediaWiki\suppressWarnings();
$dbpass = file_get_contents( $dbpassfile ); // returns false on failure
- wfRestoreWarnings();
+ MediaWiki\restoreWarnings();
if ( $dbpass === false ) {
$this->error( "Couldn't open $dbpassfile", true );
}
$this->error( 'WARNING: You have provided the options "pass" and "passfile". '
. 'The content of "passfile" overrides "pass".' );
}
- wfSuppressWarnings();
+ MediaWiki\suppressWarnings();
$pass = file_get_contents( $passfile ); // returns false on failure
- wfRestoreWarnings();
+ MediaWiki\restoreWarnings();
if ( $pass === false ) {
$this->error( "Couldn't open $passfile", true );
}