From c0211473d305779f1385cac4f39c01798247177e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 25 Jun 2025 13:57:31 +0200 Subject: [PATCH] #7612 --- src/Links/HTMLMultimediaLink.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Links/HTMLMultimediaLink.php b/src/Links/HTMLMultimediaLink.php index 94a044a..7b26b9b 100644 --- a/src/Links/HTMLMultimediaLink.php +++ b/src/Links/HTMLMultimediaLink.php @@ -82,7 +82,7 @@ class HTMLMultimediaLink extends Link // ob_end_clean(); // $this->compiler->log("##### Multimedia Link getHTMLContent ID: {$this->id} | {$this->to} ######\n\n!!!! BACKTRACE !!!!!\n$trace\n===============\n"); - if(isset($this->_config['inject'])) { + if (isset($this->_config['inject'])) { foreach ($this->_config['inject'] as $i) { $infos = ['path' => 'data/links/' . str_replace('.', '_', $this->to) . '/']; $i = str_replace('$id', '"#l_' . $this->id . '"', $i); @@ -193,8 +193,8 @@ class HTMLMultimediaLink extends Link public function getCSS() { - if (!isset($this->_config['width'])) { - Log::warning('missing width on link ' . $this->uid . ' (page ' . $this->page . ')'); + if (!isset($this->_config['width']) || !$this->_config['width'] || !isset($this->_config['height']) || !$this->_config['height']) { + $this->compiler->addIssue(17, ['uid' => $this->uid, 'page' => $this->page, 'file' => $this->to]); return; } -- 2.39.5