🚑 fix(templates) Remove references to _OLD_TEMPLATES_ macro

issue #6101
parent 3ec06624
......@@ -1043,7 +1043,7 @@ class simplePlugin implements SimpleTab
}
$this->prepare_remove();
if ($this->is_template && (!defined('_OLD_TEMPLATES_') || !_OLD_TEMPLATES_)) {
if ($this->is_template) {
$this->attrs = $this->templateSaveAttrs();
$this->saved_attributes = [];
}
......@@ -1264,7 +1264,7 @@ class simplePlugin implements SimpleTab
if (!empty($errors)) {
return $errors;
}
if ($this->is_template && (!defined('_OLD_TEMPLATES_') || !_OLD_TEMPLATES_)) {
if ($this->is_template) {
$errors = templateHandling::checkFields($this->attrs);
if (!empty($errors)) {
return $errors;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment