From 6cd4abdac1c8106736e89f92dcdc9b9d7713d912 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 4 Jul 2005 17:00:46 +0000 Subject: [PATCH] fixed output when config-dist.php called directly SC #779 --- config-dist.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config-dist.php b/config-dist.php index fcf46a56304..b64d1a1acdc 100644 --- a/config-dist.php +++ b/config-dist.php @@ -269,6 +269,12 @@ $CFG->admin = 'admin'; //========================================================================= // ALL DONE! To continue installation, visit your main page with a browser //========================================================================= +if ($CFG->wwwroot == 'http://example.com/moodle') { + echo "

Error detected in configuration file

"; + echo "

Your server address can not be: \$CFG->wwwroot = 'http://example.com/moodle';

"; + die; +} + if (file_exists("$CFG->dirroot/lib/setup.php")) { // Do not edit include_once("$CFG->dirroot/lib/setup.php"); } else {