From cf6f35512cc89e9903d50073fa093d243936b557 Mon Sep 17 00:00:00 2001 From: Bart Mollet Date: Thu, 11 Jan 2007 14:32:00 +0100 Subject: [PATCH] [svn r10677] initialize $this_section after the constants are loaded from main_api.lib.php --- index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index aa0ed507e1..340bfb4cd1 100644 --- a/index.php +++ b/index.php @@ -20,7 +20,7 @@ /** * @package dokeos.main * @author Patrick Cool , Ghent University, Refactoring -* @version $Id: index.php 10671 2007-01-11 10:14:46Z bmol $ +* @version $Id: index.php 10677 2007-01-11 13:32:00Z bmol $ * @todo check the different @todos in this page and really do them * @todo check if the news management works as expected */ @@ -37,8 +37,7 @@ $language_file = array ('courses', 'index'); // maybe we should change this into an api function? an example: Coursemanager::unset(); $cidReset = true; -// the section (for the tabs) -$this_section = SECTION_CAMPUS; + /* ----------------------------------------------------------- @@ -54,6 +53,8 @@ include_once (api_get_path(LIBRARY_PATH).'system_announcements.lib.php'); include_once (api_get_path(LIBRARY_PATH).'groupmanager.lib.php'); include_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'); +// the section (for the tabs) +$this_section = SECTION_CAMPUS; /* -----------------------------------------------------------