]> git.mjollnir.org Git - moodle.git/commitdiff
Some minor cleanups and debugging of initial setup
authormoodler <moodler>
Mon, 26 May 2003 14:38:41 +0000 (14:38 +0000)
committermoodler <moodler>
Mon, 26 May 2003 14:38:41 +0000 (14:38 +0000)
admin/index.php
admin/site.php

index fdeddce0cb371e40e62d373ecad2c89f124824fa..dbb0750e606c5d3fa49b0d61202db4faca902c4b 100644 (file)
               "./");
     }
 
+/// Set some necessary variables during set-up to avoid PHP warnings later on this page
+    if (!isset($CFG->framename)) {
+        $CFG->framename = "_top";
+    }
+    if (!isset($CFG->release)) {
+        $CFG->release = "";
+    }
+    if (!isset($CFG->version)) {
+        $CFG->version = "";
+    }
+
+
 
 /// Check if the main tables have been installed yet or not.
 
     }
 
     if (! $maintables) {
-        if (!$agreelicence) {
+        if (empty($agreelicence)) {
             $strlicense = get_string("license");
             print_header($strlicense, $strlicense, $strlicense, "", "", false, "&nbsp;", "&nbsp;");
             print_heading("<A HREF=\"http://moodle.org\">Moodle</A> - Modular Object-Oriented Dynamic Learning Environment");
             print_simple_box_start("center");
             echo text_to_html(get_string("gpl"));
             print_simple_box_end();
-            echo "<BR>";
+            echo "<br />";
             notice_yesno(get_string("doyouagree"), "index.php?agreelicence=true", 
-                                                   "http://www.gnu.org/copyleft/gpl.html");
+                                                   "http://moodle.org/doc/?frame=licence.html");
             exit;
         }
 
index ccfe14c6be7ed57b2816cf6187283b5cfff4a7bf..ce20492f5e484388b5e15eb15a76500db7c71250 100644 (file)
         $form = $site;
         $firsttime = false;
     } else {
+        $form->fullname = "";
+        $form->shortname = "";
+        $form->summary = "";
+        $form->newsitems = 0;
+        $form->id = "";
         $form->category = 0;
         $form->format = "social";
         $form->newsitems = 0;