Skip to content
Code-Schnipsel Gruppen Projekte
Commit fc6bb857 erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

Revert "feat: if widht and height attributes are missing, set them from image max..."

This reverts commit a06c7219
Übergeordneter a06c7219
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -251,11 +251,11 @@ function smarty_function_image($params, $smarty)
QUI\System\Log::addDebug($Exception->getMessage());
}
if (empty($params['width']) || $params['width'] > $maxWidth) {
if (isset($params['width']) && $params['width'] > $maxWidth) {
$params['width'] = $maxWidth;
}
if (empty($params['height']) || $params['height'] > $maxHeight) {
if (isset($params['height']) && $params['height'] > $maxHeight) {
$params['height'] = $maxHeight;
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren