// 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);
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;
}