Skip to content

Commit

Permalink
System: v27 final commit (final take)
Browse files Browse the repository at this point in the history
  • Loading branch information
SKuipers committed May 21, 2024
1 parent 8355667 commit 2944013
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -965,13 +965,13 @@ public static function photo($path, $size = 75, $class = 'inline-block shadow bg

$path = (string) $path;
if (preg_match('/^http[s]*/', $path)) {
return sprintf('<img class="%1$s" src="%2$s">', $class, rawurlencode($path));
return sprintf('<img class="%1$s" src="%2$s">', $class, $path);
} else {
if (empty($path) or file_exists(static::$settings['absolutePath'].'/'.$path) == false) {
$path = '/themes/'.static::$settings['gibbonThemeName'].'/img/anonymous_240_square.jpg';
}

return sprintf('<img class="%1$s" src="%2$s">', $class, static::$settings['absoluteURL'].'/'.rawurlencode($path));
return sprintf('<img class="%1$s" src="%2$s">', $class, static::$settings['absoluteURL'].'/'.$path);
}
}

Expand Down Expand Up @@ -1017,7 +1017,7 @@ public static function userPhoto($path, $size = 75, $class = '')
$path = '/themes/'.static::$settings['gibbonThemeName'].'/img/anonymous_'.$imageSize.'.jpg';
}

return sprintf('<img class="%1$s" src="%2$s">', $class, static::$settings['absoluteURL'].'/'.rawurlencode($path));
return sprintf('<img class="%1$s" src="%2$s">', $class, static::$settings['absoluteURL'].'/'.$path);
}

/**
Expand Down

0 comments on commit 2944013

Please sign in to comment.