X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Finstall.php;h=3395458d9fe3f4a8e9353c299b08ef5c8e1d3359;hb=ee7e922a24bb80c79f744eaebd5da56372894d60;hp=c996530c613e928323e8f6e6a6238b06319e60fc;hpb=64a6afaf6964b3f9e61d595d5586fe7428a57e73;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/install.php b/maintenance/install.php index c996530c61..3395458d9f 100644 --- a/maintenance/install.php +++ b/maintenance/install.php @@ -88,6 +88,12 @@ 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" ); + $this->addOption( 'extensions', 'Comma-separated list of extensions to install', + false, true, false, true ); + $this->addOption( 'skins', 'Comma-separated list of skins to install (default: all)', + false, true, false, true ); } public function getDbType() { @@ -132,9 +138,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 +155,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" ); } @@ -168,6 +174,6 @@ class CommandLineInstaller extends Maintenance { } } -$maintClass = 'CommandLineInstaller'; +$maintClass = CommandLineInstaller::class; require_once RUN_MAINTENANCE_IF_MAIN;