]> git.mjollnir.org Git - moodle.git/commitdiff
'merged from 1.8 - block width definition did not work any more, needs to come after...
authorurs_hunkler <urs_hunkler>
Wed, 7 Mar 2007 09:47:23 +0000 (09:47 +0000)
committerurs_hunkler <urs_hunkler>
Wed, 7 Mar 2007 09:47:23 +0000 (09:47 +0000)
index.php

index 7e14266e7d1ba9dfa582ee0bb592136b604e348a..cd1b5d84b9fc7bdc95713dc05230d8b439330732 100644 (file)
--- a/index.php
+++ b/index.php
         die;
     }
 
+    require_once('config.php');
+    require_once($CFG->dirroot .'/course/lib.php');
+    require_once($CFG->dirroot .'/lib/blocklib.php');
+
+    if (empty($SITE)) {
+        redirect($CFG->wwwroot .'/'. $CFG->admin .'/index.php');
+    }
+
     // Bounds for block widths
     // more flexible for theme designers taken from theme config.php
     $lmin = (empty($THEME->block_l_min_width)) ? 100 : $THEME->block_l_min_width;
     define('BLOCK_R_MIN_WIDTH', $rmin);
     define('BLOCK_R_MAX_WIDTH', $rmax);
 
-    require_once('config.php');
-    require_once($CFG->dirroot .'/course/lib.php');
-    require_once($CFG->dirroot .'/lib/blocklib.php');
-
-    if (empty($SITE)) {
-        redirect($CFG->wwwroot .'/'. $CFG->admin .'/index.php');
-    }
-
-    // check if major upgrade needed - also present in login/index.php
+   // check if major upgrade needed - also present in login/index.php
     if ((int)$CFG->version < 2006101100) { //1.7 or older
         @require_logout();
         redirect("$CFG->wwwroot/$CFG->admin/");