X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2Finstall.php;h=c996530c613e928323e8f6e6a6238b06319e60fc;hb=4a811bd14b28af7465e6d1df1fb61291de4b5911;hp=cac3009a8f49faf37f997f4e25e9424b6af394b1;hpb=06d611a3997a63fc54f7141ed9fa3105c9d0a8e4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/install.php b/maintenance/install.php index cac3009a8f..c996530c61 100644 --- a/maintenance/install.php +++ b/maintenance/install.php @@ -136,7 +136,7 @@ class CommandLineInstaller extends Maintenance { $dbpass = file_get_contents( $dbpassfile ); // returns false on failure MediaWiki\restoreWarnings(); if ( $dbpass === false ) { - $this->error( "Couldn't open $dbpassfile", true ); + $this->fatalError( "Couldn't open $dbpassfile" ); } $this->mOptions['dbpass'] = trim( $dbpass, "\r\n" ); } @@ -153,11 +153,11 @@ class CommandLineInstaller extends Maintenance { $pass = file_get_contents( $passfile ); // returns false on failure MediaWiki\restoreWarnings(); if ( $pass === false ) { - $this->error( "Couldn't open $passfile", true ); + $this->fatalError( "Couldn't open $passfile" ); } $this->mOptions['pass'] = trim( $pass, "\r\n" ); } elseif ( $this->getOption( 'pass' ) === null ) { - $this->error( 'You need to provide the option "pass" or "passfile"', true ); + $this->fatalError( 'You need to provide the option "pass" or "passfile"' ); } }