diff --git a/main/admin/settings.lib.php b/main/admin/settings.lib.php
index 641e9ab81d..be23973d88 100755
--- a/main/admin/settings.lib.php
+++ b/main/admin/settings.lib.php
@@ -295,7 +295,7 @@ function handle_stylesheets()
$dirpath = api_get_path(SYS_PATH).'main/css/'.$style_dir;
if (is_dir($dirpath)) {
if ($style_dir != '.' && $style_dir != '..') {
- if ($currentstyle == $style_dir OR ($style_dir == 'dokeos_classic' AND !$currentstyle)) {
+ if ($currentstyle == $style_dir OR ($style_dir == 'chamilo' AND !$currentstyle)) {
$selected = 'selected="true"';
} else {
$selected = '';
diff --git a/main/chat/chat.php b/main/chat/chat.php
index 22c3a8e4e2..f850d870c5 100755
--- a/main/chat/chat.php
+++ b/main/chat/chat.php
@@ -26,26 +26,10 @@ header('Content-Type: text/html; charset='.api_get_system_encoding());
/*
* Choose CSS style (platform's, user's, or course's)
*/
-$platform_theme = api_get_setting('stylesheets'); // plataform's css
-$my_style = $platform_theme;
-if (api_get_setting('user_selected_theme') == 'true') {
- $useri = api_get_user_info();
- $user_theme = $useri['theme'];
- if (!empty($user_theme) && $user_theme != $my_style) {
- $my_style = $user_theme; // user's css
- }
-}
+$my_style = api_get_visual_theme();
$mycourseid = api_get_course_id();
if (!empty($mycourseid) && $mycourseid != -1) {
- if (api_get_setting('allow_course_theme') == 'true') {
- $mycoursetheme = api_get_course_setting('course_theme');
- if (!empty($mycoursetheme) && $mycoursetheme != -1) {
- if (!empty($mycoursetheme) && $mycoursetheme != $my_style) {
- $my_style = $mycoursetheme; // course's css
- }
- }
- }
$open_chat_window = api_get_course_setting('allow_open_chat_window');
}
@@ -102,9 +86,8 @@ if ($_SESSION['_gid'] OR $_GET['group_id']) {
if (empty($open_chat_window)) {
-Display::display_header($tool_name, 'Chat');
+ Display::display_header($tool_name, 'Chat');
}
-
echo '';
echo '';
@@ -112,7 +95,7 @@ echo '';
if (empty($open_chat_window)) {
-Display::display_footer();
+ Display::display_footer();
}
echo '