Browse Source

fix icon custom

Alex Aragon 7 years ago
parent
commit
4024530280
1 changed files with 1 additions and 2 deletions
  1. 1 2
      main/inc/lib/display.lib.php

+ 1 - 2
main/inc/lib/display.lib.php

@@ -739,14 +739,13 @@ class Display
         }
 
         $size_extra = $size.'/';
+        $icon = $w_code_path.'img/'.$image;
         $theme = 'themes/chamilo/icons/';
 
         if ($loadThemeIcon) {
             $theme = 'themes/'.api_get_visual_theme().'/icons/';
             if (is_file($alternateCssPath.$theme.$image)) {
                 $icon = $alternateWebCssPath.$theme.$image;
-            } else {
-                $icon = $w_code_path.'img/'.$image;
             }
             // Checking the theme icons folder example: app/Resources/public/css/themes/chamilo/icons/XXX
             if (is_file($alternateCssPath.$theme.$size_extra.$image)) {