[svn r12904] Fix a bug : api_get_course_id() was called before the inclusion of global.inc.php

skala
Julian Prud'homme 18 years ago
parent 32a3a32caf
commit 37145730bd
  1. 17
      main/course_home/course_home.php

@ -1,4 +1,4 @@
<?php // $Id: course_home.php 12885 2007-08-11 19:50:07Z yannoo $
<?php // $Id: course_home.php 12904 2007-08-29 14:13:08Z elixir_julian $
/*
==============================================================================
Dokeos - elearning and course management software
@ -71,6 +71,12 @@ width: 100%;
}
</style>";
// name of the language file that needs to be included
$language_file[] = "course_home";
// inlcuding the global file
include('../../main/inc/global.inc.php');
if(!isset($cidReq))
{
$cidReq = api_get_course_id(); // to provide compatibility. with previous system
@ -82,15 +88,6 @@ if(!isset($cidReq))
$error_msg[$classError][] = "[".__FILE__."][".__LINE__."] cidReq was Missing $cidReq take $dbname;";
}
// is this needed?????
$section = "course";
// name of the language file that needs to be included
$language_file[] = "course_home";
// inlcuding the global file
include('../../main/inc/global.inc.php');
if(isset($_SESSION['_gid'])){
unset($_SESSION['_gid']);
}

Loading…
Cancel
Save