mirror of
https://github.com/moodle/moodle.git
synced 2025-07-06 15:06:04 +02:00
Slightly different way of doing this to avoid problems with error_reporting
not working.
This commit is contained in:
@ -124,7 +124,9 @@ $CFG->admin = 'admin';
|
|||||||
// ALL DONE! To continue installation, visit your main page with a browser
|
// 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__)) {
|
if ($CFG->dirroot == dirname(__FILE__)) {
|
||||||
echo "<p>Could not find this file: $CFG->dirroot/lib/setup.php</p>";
|
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>";
|
echo "<p>Are you sure all your files have been uploaded?</p>";
|
||||||
@ -136,6 +138,7 @@ if (! @include_once("$CFG->dirroot/lib/setup.php")) { // Do not edit
|
|||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
|
// 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.
|
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user