X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Finstall.php;h=438e9dc4789f45c876c12231f1e9b828cd90edc9;hb=9008bdffddb30b7b08611a276652e4ec4a295344;hp=d170c15e6433b1a32341de05f4040452581e124e;hpb=16c80e429be5904fb42a93f260f8de3d18f0c692;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/install.php b/maintenance/install.php index d170c15e64..438e9dc478 100644 --- a/maintenance/install.php +++ b/maintenance/install.php @@ -88,6 +88,8 @@ class CommandLineInstaller extends Maintenance { false, true ); */ $this->addOption( 'env-checks', "Run environment checks only, don't change anything" ); + + $this->addOption( 'with-extensions', "Detect and include extensions" ); } public function getDbType() { @@ -132,9 +134,9 @@ class CommandLineInstaller extends Maintenance { $this->error( 'WARNING: You have provided the options "dbpass" and "dbpassfile". ' . 'The content of "dbpassfile" overrides "dbpass".' ); } - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $dbpass = file_get_contents( $dbpassfile ); // returns false on failure - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( $dbpass === false ) { $this->fatalError( "Couldn't open $dbpassfile" ); } @@ -149,9 +151,9 @@ class CommandLineInstaller extends Maintenance { $this->error( 'WARNING: You have provided the options "pass" and "passfile". ' . 'The content of "passfile" overrides "pass".' ); } - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $pass = file_get_contents( $passfile ); // returns false on failure - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( $pass === false ) { $this->fatalError( "Couldn't open $passfile" ); }