diff --git a/lib/models/StockImage.php b/lib/models/StockImage.php index 0885536629fbf7aa4317560b3875eff1fcfe7253..08dcf87478c41f9e766d1460737e2c873533ee9a 100644 --- a/lib/models/StockImage.php +++ b/lib/models/StockImage.php @@ -57,8 +57,8 @@ class StockImage extends \SimpleORMap public function getPath(string $size = self::SIZE_ORIGINAL): string { return sprintf( - '%s/public/pictures/stock-images/%s', - $GLOBALS['STUDIP_BASE_PATH'], + '%s/stock-images/%s', + $GLOBALS['DYNAMIC_CONTENT_PATH'], $this->getFilename($size) ); } @@ -90,8 +90,8 @@ class StockImage extends \SimpleORMap } return sprintf( - '%spictures/stock-images/%s', - $GLOBALS['ABSOLUTE_URI_STUDIP'], + '%s/stock-images/%s', + $GLOBALS['DYNAMIC_CONTENT_URL'], $this->getFilename($size) ); }