From: moodler Date: Mon, 1 Sep 2003 12:07:06 +0000 (+0000) Subject: Slightly different way of doing this to avoid problems with error_reporting X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=42b76b11bda1a3a2088fc804ee31b51f5c63cafc;p=moodle.git Slightly different way of doing this to avoid problems with error_reporting not working. --- diff --git a/config-dist.php b/config-dist.php index e8c129ef52..70081967f9 100644 --- a/config-dist.php +++ b/config-dist.php @@ -124,7 +124,9 @@ $CFG->admin = 'admin'; // ALL DONE! To continue installation, visit your main page with a browser //========================================================================= -if (! @include_once("$CFG->dirroot/lib/setup.php")) { // Do not edit +if (file_exists("$CFG->dirroot/lib/setup.php")) { // Do not edit + include_once("$CFG->dirroot/lib/setup.php"); +} else { if ($CFG->dirroot == dirname(__FILE__)) { echo "

Could not find this file: $CFG->dirroot/lib/setup.php

"; echo "

Are you sure all your files have been uploaded?

"; @@ -136,6 +138,7 @@ if (! @include_once("$CFG->dirroot/lib/setup.php")) { // Do not edit die; } + // MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES, // RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE. ?>