瀏覽代碼

Fixing comments

Julio Montoya 11 年之前
父節點
當前提交
bd2cfce1bb
共有 1 個文件被更改,包括 11 次插入6 次删除
  1. 11 6
      main/inc/lib/main_api.lib.php

+ 11 - 6
main/inc/lib/main_api.lib.php

@@ -3611,7 +3611,8 @@ function api_get_visual_theme() {
     static $visual_theme;
     static $visual_theme;
 
 
     if (!isset($visual_theme)) {
     if (!isset($visual_theme)) {
-        $platform_theme = api_get_setting('stylesheets');   // Plataform's theme.
+        // Platform's theme.
+        $platform_theme = api_get_setting('stylesheets');
 
 
         $visual_theme = $platform_theme;
         $visual_theme = $platform_theme;
 
 
@@ -3620,8 +3621,9 @@ function api_get_visual_theme() {
             if (isset($user_info['theme'])) {
             if (isset($user_info['theme'])) {
                 $user_theme = $user_info['theme'];
                 $user_theme = $user_info['theme'];
                 if (!empty($user_theme)) {
                 if (!empty($user_theme)) {
-                $visual_theme = $user_theme;                // User's theme.
-             }
+                    // User's theme.
+                    $visual_theme = $user_theme;
+                }
             }
             }
         }
         }
 
 
@@ -3632,16 +3634,19 @@ function api_get_visual_theme() {
 
 
                 if (!empty($course_theme) && $course_theme != -1) {
                 if (!empty($course_theme) && $course_theme != -1) {
                     if (!empty($course_theme)) {
                     if (!empty($course_theme)) {
-                        $visual_theme = $course_theme;      // Course's theme.
+                        // Course's theme.
+                        $visual_theme = $course_theme;
                     }
                     }
                 }
                 }
 
 
                 $allow_lp_theme = api_get_course_setting('allow_learning_path_theme');
                 $allow_lp_theme = api_get_course_setting('allow_learning_path_theme');
                 if ($allow_lp_theme == 1) {
                 if ($allow_lp_theme == 1) {
-                    global $lp_theme_css, $lp_theme_config; // These variables come from the file lp_controller.php.
+                    // These variables come from the file lp_controller.php.
+                    global $lp_theme_css, $lp_theme_config;
+                    // LP's theme.
                     if (!$lp_theme_config) {
                     if (!$lp_theme_config) {
                         if (!empty($lp_theme_css)) {
                         if (!empty($lp_theme_css)) {
-                            $visual_theme = $lp_theme_css;  // LP's theme.
+                            $visual_theme = $lp_theme_css;
                         }
                         }
                     }
                     }
                 }
                 }