]> git.mjollnir.org Git - moodle.git/commitdiff
Better notification and continue button is more useful
authormoodler <moodler>
Sat, 18 Jan 2003 14:24:40 +0000 (14:24 +0000)
committermoodler <moodler>
Sat, 18 Jan 2003 14:24:40 +0000 (14:24 +0000)
admin/index.php

index df13826f602baf12b0c4a79a979262a301ecf8ee..53fccfbe04079057fdc384dced1fb81762b0e4bf 100644 (file)
 
     $dirroot = dirname(realpath("../config.php"));
     if ($dirroot != $CFG->dirroot) {
-        $dirroot = addslashes($dirroot);
         error("Please fix your settings in config.php:
               <P>You have:
-              <P>\$CFG->dirroot = \"$CFG->dirroot\";
+              <P>\$CFG->dirroot = \"".addslashes($CFG->dirroot)."\";
               <P>but it should be:
-              <P>\$CFG->dirroot = \"$dirroot\";");
+              <P>\$CFG->dirroot = \"".addslashes($dirroot)."\";",
+              "./");
     }