X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebStart.php;h=eb79134337225e212d589865e6e3b5913989c59a;hb=f508561f7bde2f410055bfe1c602619cd8893fe9;hp=f840a5ed784c25dceea58e43c0c51dc4d71f2b6a;hpb=75da5baa3f353a326edaf9ee4e0bbaed097f725a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebStart.php b/includes/WebStart.php index f840a5ed78..eb79134337 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -91,9 +91,6 @@ if ( $IP === false ) { } } -# Get MWInit class -require_once "$IP/includes/Init.php"; - # Start the autoloader, so that extensions can derive classes from core files require_once "$IP/includes/AutoLoader.php"; @@ -129,8 +126,8 @@ if ( defined( 'MW_CONFIG_CALLBACK' ) ) { # LocalSettings.php is the per site customization file. If it does not exist # the wiki installer needs to be launched or the generated file uploaded to - # the root wiki directory - if ( !file_exists( MW_CONFIG_FILE ) ) { + # the root wiki directory. Give a hint, if it is not readable by the server. + if ( !is_readable( MW_CONFIG_FILE ) ) { require_once "$IP/includes/templates/NoLocalSettings.php"; die(); }