Pārlūkot izejas kodu

Re-introduce the code condition to show SVG icons in test mode (removed in another context in commit 7dd9ca2e1c46f45eb4c5d12ffadaed5f4fcfdac8

Yannick Warnier 8 gadi atpakaļ
vecāks
revīzija
3a6f9c2047
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      main/inc/lib/display.lib.php

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

@@ -773,7 +773,7 @@ class Display
         // it checks if there is an SVG version. If so, it uses it.
         // When moving this to production, the return_icon() calls should
         // ask for the SVG version directly
-        /*$testServer = api_get_setting('server_type');
+        $testServer = api_get_setting('server_type');
         if ($testServer == 'test' && $return_only_path == false) {
             $svgImage = substr($image, 0, -3) . 'svg';
             if (is_file($code_path . $theme . 'svg/' . $svgImage)) {
@@ -788,7 +788,7 @@ class Display
             if (empty($additional_attributes['width'])) {
                 $additional_attributes['width'] = $size;
             }
-        }*/
+        }
 
         $icon = api_get_cdn_path($icon);