From a378dde87f5f53adf3da4089393e7baecdd82f67 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 14 Jun 2007 16:05:56 +0200 Subject: [PATCH] [svn r12598] Using api_get_setting() instead of $_setting[]. Caution: the variables changed here do not exist anywhere anymore - another commit will add them to the settings_current table for 1.8.1 --- index.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index c511fba885..4817892330 100644 --- a/index.php +++ b/index.php @@ -20,7 +20,7 @@ /** * @package dokeos.main * @author Patrick Cool , Ghent University, Refactoring -* @version $Id: index.php 12565 2007-06-07 13:52:17Z elixir_julian $ +* @version $Id: index.php 12598 2007-06-14 14:05:56Z yannoo $ * @todo check the different @todos in this page and really do them * @todo check if the news management works as expected */ @@ -553,7 +553,7 @@ function display_anonymous_course_list() { //the category contains courses accessible to anonymous visitors $htmlListCat .= "".$catLine['name'].""; - if (get_setting('show_number_of_courses') == 'true') + if (api_get_setting('show_number_of_courses') == 'true') { $htmlListCat .= " (".$catLine['nbCourse']." ".get_lang("Courses").")"; } @@ -566,7 +566,7 @@ function display_anonymous_course_list() /************************************************************************ end changed code to eliminate the (0 courses) after empty categories ************************************************************************/ - elseif (get_setting('show_empty_course_categories') == 'true') + elseif (api_get_setting('show_empty_course_categories') == 'true') { $htmlListCat .= $catLine['name']; } @@ -576,11 +576,11 @@ function display_anonymous_course_list() else { $htmlTitre = "

"; - if ($_setting['show_back_link_on_top_of_tree'] == 'true') + if (api_get_setting('show_back_link_on_top_of_tree') == 'true') { $htmlTitre .= ""."<< ".get_lang("BackToHomePage").""; } - if (!is_null($catLine['parent_id']) || ($_setting['show_back_link_on_top_of_tree'] <> 'true' && !is_null($catLine['code']))) + if (!is_null($catLine['parent_id']) || (api_get_setting('show_back_link_on_top_of_tree') <> 'true' && !is_null($catLine['code']))) { $htmlTitre .= ""."<< ".get_lang("Up").""; } @@ -619,7 +619,7 @@ function display_anonymous_course_list() echo "

  • \n"; echo "", $course['title'], ""; echo "
    ", $course['visual_code'], " - ", $course['tutor_name']; - if ($_setting['show_different_course_language'] == 'true' && $course['course_language'] <> api_get_setting('platformLanguage')) + if (api_get_setting('show_different_course_language') == 'true' && $course['course_language'] <> api_get_setting('platformLanguage')) { echo ' - '.$course['course_language']; }