diff --git a/main/inc/lib/template.lib.php b/main/inc/lib/template.lib.php index f6c1d5ac6c..d206ce594f 100644 --- a/main/inc/lib/template.lib.php +++ b/main/inc/lib/template.lib.php @@ -133,10 +133,7 @@ class Template $this->set_header_parameters(); $this->set_footer_parameters(); - $this->style = api_get_visual_theme(); $this->assign('style', $this->style); - $this->assign('css_style', $this->style); - $this->assign('template', $this->app['template_style']); //Chamilo plugins if ($this->show_header) { @@ -357,8 +354,6 @@ class Template 'language' => $course['language'], 'directory' => $course['directory'], 'session_id' => api_get_session_id(), - 'user_is_teacher' => api_is_course_admin(), - 'student_view' => (!empty($_GET['isStudentView']) && $_GET['isStudentView'] == 'true'), ); $this->assign('_c',$_c); } @@ -400,10 +395,6 @@ class Template 'web_img' => api_get_path(WEB_IMG_PATH), 'web_plugin' => api_get_path(WEB_PLUGIN_PATH), 'web_lib' => api_get_path(WEB_LIBRARY_PATH), - 'web_self' => api_get_self(), - 'web_query_vars' => api_htmlentities($_SERVER['QUERY_STRING']), - 'web_self_query_vars' => api_htmlentities($_SERVER['REQUEST_URI']), - 'web_cid_query' => api_get_cidreq(), ); $this->assign('_p', $_p);