]> _ Git - fluidbook_tools.git/commitdiff
#7612
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 25 Jun 2025 11:57:31 +0000 (13:57 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 25 Jun 2025 11:57:31 +0000 (13:57 +0200)
src/Links/HTMLMultimediaLink.php

index 94a044aae92528cc7ed6faac84c449d23f14aae4..7b26b9b041b1c48614d58f47db0534c4d19d079b 100644 (file)
@@ -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;
         }