Commit c5184fc2 authored by Côme Chilliet's avatar Côme Chilliet

Merge branch '6101-remove-_old_templates_-macro-and-related-code' into '1.4-dev'

Resolve "Remove _OLD_TEMPLATES_ macro and related code"

See merge request fusiondirectory/fd!779
parents 3ec06624 1587dc34
......@@ -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