Implement optional use of SVG icons. Only enabled in test-server mode for now - Remove left-out error logs - refs #7359

1.10.x
Yannick Warnier 11 years ago
parent d8b40b475d
commit 8f2d553c3c
  1. 3
      main/inc/lib/display.lib.php

@ -782,10 +782,8 @@ class Display
if (Chamilo::is_test_server()) { if (Chamilo::is_test_server()) {
$svgImage = substr($image, 0, -3) . 'svg'; $svgImage = substr($image, 0, -3) . 'svg';
if (is_file($code_path . $theme . 'svg/' . $svgImage)) { if (is_file($code_path . $theme . 'svg/' . $svgImage)) {
error_log(__LINE__);
$icon = $w_code_path . $theme . 'svg/' . $svgImage; $icon = $w_code_path . $theme . 'svg/' . $svgImage;
} elseif (is_file($code_path . 'img/icons/svg/' . $svgImage)) { } elseif (is_file($code_path . 'img/icons/svg/' . $svgImage)) {
error_log(__LINE__);
$icon = $w_code_path . 'img/icons/svg/' . $svgImage; $icon = $w_code_path . 'img/icons/svg/' . $svgImage;
} }
@ -801,7 +799,6 @@ class Display
if ($return_only_path) { if ($return_only_path) {
return $icon; return $icon;
} }
error_log($icon);
$img = self::img($icon, $alt_text, $additional_attributes); $img = self::img($icon, $alt_text, $additional_attributes);
if (SHOW_TEXT_NEAR_ICONS == true and !empty($alt_text)) { if (SHOW_TEXT_NEAR_ICONS == true and !empty($alt_text)) {

Loading…
Cancel
Save