X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=config%2Findex.php;h=bd8e62936e59cd6f45094e41ccb22461213a5af1;hb=39f8a5753dd51da3b2551eb05f756aa0a170e29c;hp=8509393e93ba1639f1c1521dea33a6c9a68dbf37;hpb=cffefe592abad8e133f8819394fdafe2c2029898;p=lhc%2Fweb%2Fwiklou.git diff --git a/config/index.php b/config/index.php index 8509393e93..bd8e62936e 100644 --- a/config/index.php +++ b/config/index.php @@ -633,8 +633,10 @@ function writeLocalSettings( $conf ) { ini_set( \"include_path\", \"\$IP/includes$sep\$IP/languages$sep\" . ini_get(\"include_path\") ); include_once( \"DefaultSettings.php\" ); -if( \$wgCommandLineMode ) { - die( \"Can't use command-line utils with in-place install yet, sorry.\" ); +if ( \$wgCommandLineMode ) { + if ( isset( \$_SERVER ) && array_key_exists( 'REQUEST_METHOD', \$_SERVER ) ) { + die( \"This script must be run from the command line\\n\" ); + } } else { ## Compress output if the browser supports it {$zlib}if( !ini_get( 'zlib.output_compression' ) ) ob_start( 'ob_gzhandler' );