diff --git a/lib/yform.php b/lib/yform.php index 6c86bc5ea..c0e7d8417 100644 --- a/lib/yform.php +++ b/lib/yform.php @@ -85,6 +85,7 @@ public function __construct(array $params = []) $this->objparams['form_hiddenfields'] = []; $this->objparams['warning'] = []; + $this->objparams['warning_intro'] = ''; $this->objparams['warning_messages'] = []; $this->objparams['hide_top_warning_messages'] = false; diff --git a/ytemplates/bootstrap/errors.tpl.php b/ytemplates/bootstrap/errors.tpl.php index f83b12905..4a91eed0f 100644 --- a/ytemplates/bootstrap/errors.tpl.php +++ b/ytemplates/bootstrap/errors.tpl.php @@ -9,7 +9,10 @@ objparams['warning_messages'] || $this->objparams['unique_error']): - if ($this->objparams['Error-occured']): ?> + if ($this->objparams['Error-occured']): + if($this->objparams['warning_intro']) { ?> +
= $this->objparams['warning_intro'] ?>
+