Permalink
Browse files

Slightly different way of doing this to avoid problems with error_rep…

…orting

not working.
  • Loading branch information...
1 parent 1c109ec commit 42b76b11bda1a3a2088fc804ee31b51f5c63cafc moodler committed Sep 1, 2003
Showing with 4 additions and 1 deletion.
  1. +4 −1 config-dist.php
View
@@ -124,7 +124,9 @@
// 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 "<p>Could not find this file: $CFG->dirroot/lib/setup.php</p>";
echo "<p>Are you sure all your files have been uploaded?</p>";
@@ -136,6 +138,7 @@
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.
?>

0 comments on commit 42b76b1

Please sign in to comment.