TemplateUsageTable: fix ipl compatibility

This commit is contained in:
Thomas Gelf 2019-09-16 11:16:42 +02:00
parent 1e893e1bc7
commit de2ad48c4f

View File

@ -98,10 +98,9 @@ class TemplateUsageTable extends Table
} }
if ($used) { if ($used) {
$this->generateHeader(); $this->add($rows);
$this->body()->add($rows);
} else { } else {
$this->body()->add($this->translate('This template is not in use')); $this->add($this->translate('This template is not in use'));
} }
} }