Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed output when config-dist.php called directly SC #779

  • Loading branch information...
commit 6cd4abdac1c8106736e89f92dcdc9b9d7713d912 1 parent 11b1927
skodak authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 config-dist.php
View
6 config-dist.php
@@ -269,6 +269,12 @@
//=========================================================================
// ALL DONE! To continue installation, visit your main page with a browser
//=========================================================================
+if ($CFG->wwwroot == 'http://example.com/moodle') {
+ echo "<p>Error detected in configuration file</p>";
+ echo "<p>Your server address can not be: \$CFG->wwwroot = 'http://example.com/moodle';</p>";
+ die;
+}
+
if (file_exists("$CFG->dirroot/lib/setup.php")) { // Do not edit
include_once("$CFG->dirroot/lib/setup.php");
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.