Skip to content

Commit

Permalink
Avoid returning SVG image if $return_only_path option is true
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Nov 19, 2015
1 parent 2462c6c commit 7a0f1a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/display.lib.php
Expand Up @@ -739,7 +739,7 @@ public static function return_icon(
// When moving this to production, the return_icon() calls should
// ask for the SVG version directly
$testServer = api_get_setting('server_type');
if ($testServer == 'test') {
if ($testServer == 'test' && $return_only_path == false) {
$svgImage = substr($image, 0, -3) . 'svg';
if (is_file($code_path . $theme . 'svg/' . $svgImage)) {
$icon = $w_code_path . $theme . 'svg/' . $svgImage;
Expand Down

0 comments on commit 7a0f1a9

Please sign in to comment.