From e2d880af2727c992b88a0ca39821edba27b380fb Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 6 Nov 2021 14:12:15 +0100 Subject: [PATCH] set exclude directory as notice, not warning --- inc/lib.improve.action.phpheader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/lib.improve.action.phpheader.php b/inc/lib.improve.action.phpheader.php index e70dd2e..19f65d4 100644 --- a/inc/lib.improve.action.phpheader.php +++ b/inc/lib.improve.action.phpheader.php @@ -117,7 +117,7 @@ class ImproveActionPhpheader extends ImproveAction $this->stop_scan = false; if (!empty($this->getSetting('exclude_locales')) && preg_match('/\/(locales|libs)(\/.*?|)$/', $this->path_full)) { if (!$skipped) { - $this->setWarning(__('Skip directory')); + $this->setSuccess(__('Skip directory')); } $this->stop_scan = true; } @@ -160,7 +160,7 @@ class ImproveActionPhpheader extends ImproveAction $bloc = trim($this->getSetting('bloc_content')); if (empty($bloc)) { - self::notice(__('bloc is empty'), false); + $this->setWarning(__('bloc is empty')); return null; }