mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 16:26:59 +02:00
Add support for feature request issue processwire/processwire-issues#1032
This commit is contained in:
@@ -651,6 +651,7 @@ abstract class AdminThemeFramework extends AdminTheme {
|
||||
|
||||
$text = $notice->text;
|
||||
$allowMarkup = $notice->flags & Notice::allowMarkup;
|
||||
$groupByType = $options['groupByType'] && !($notice->flags & Notice::noGroup) && !($notice instanceof NoticeError);
|
||||
|
||||
if($allowMarkup) {
|
||||
// leave $text alone
|
||||
@@ -695,7 +696,7 @@ abstract class AdminThemeFramework extends AdminTheme {
|
||||
'{text}' => $text,
|
||||
);
|
||||
|
||||
if($options['groupByType']) {
|
||||
if($groupByType) {
|
||||
if(!isset($noticesArray[$noticeType])) $noticesArray[$noticeType] = array();
|
||||
$noticesArray[$noticeType][] = $replacements;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user