From c68cde86b1afc7de82e7f1a4adc7e87ec894f602 Mon Sep 17 00:00:00 2001 From: buddh4 Date: Fri, 20 Oct 2017 18:57:04 +0200 Subject: [PATCH] Fix #2792 use of wrong log badge colors --- protected/humhub/modules/admin/views/logging/index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/protected/humhub/modules/admin/views/logging/index.php b/protected/humhub/modules/admin/views/logging/index.php index c901115b51..a2ac7725e5 100644 --- a/protected/humhub/modules/admin/views/logging/index.php +++ b/protected/humhub/modules/admin/views/logging/index.php @@ -2,6 +2,10 @@ use yii\helpers\Html; use humhub\compat\CHtml; + +/* @var $logEntries \humhub\modules\admin\models\Log[] */ +/* @var $pagination \yii\data\Pagination */ + ?>
$pagination->totalCount]); ?> @@ -18,10 +22,10 @@ use humhub\compat\CHtml; level == \yii\log\Logger::LEVEL_WARNING) { - $labelClass = "label-danger"; + $labelClass = "label-warning"; $levelName = "Warning"; } elseif ($entry->level == \yii\log\Logger::LEVEL_ERROR) { - $labelClass = "label-warning"; + $labelClass = "label-danger"; $levelName = "Error"; } elseif ($entry->level == \yii\log\Logger::LEVEL_INFO) { $labelClass = "label-info";