Skip to content
Snippets Groups Projects
Commit abf34ac0 authored by Sebastian Biller's avatar Sebastian Biller Committed by Jan-Hendrik Willms
Browse files

use global dynamic content var, fixes #4356

Closes #4356

Merge request studip/studip!3157
parent 17425a55
No related branches found
No related tags found
No related merge requests found
......@@ -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)
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment