From 66c8a4fdabd50b5b7a9b06e942b920bdf33ddbaa Mon Sep 17 00:00:00 2001 From: Marty Friedel <1491079+martyf@users.noreply.github.com> Date: Fri, 14 Oct 2022 13:25:55 +1100 Subject: [PATCH] Tweak to manual usage Signed-off-by: Marty Friedel <1491079+martyf@users.noreply.github.com> --- src/Tags/Iconamic.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Tags/Iconamic.php b/src/Tags/Iconamic.php index 4a74725..ce89136 100644 --- a/src/Tags/Iconamic.php +++ b/src/Tags/Iconamic.php @@ -109,8 +109,10 @@ protected function _getIcon(string $handle = null, bool $checkIconExistsOnly = f } $icon = null; - if (is_array($this->context) && array_key_exists($handle, $this->context) || isset($this->context[$handle])) { - // if the context is NOT a string (if its a string, treat it as a manual one) + if ($this->params->has('icon') && $this->params->has('path')) { + // do nothing, treat it as a manual + } elseif (is_array($this->context) && array_key_exists($handle, $this->context) || isset($this->context[$handle])) { + // if the context is NOT a string (if its a string, treat it as a manual one) if (!is_string($this->context[$handle])) { $icon = $this->context[$handle]; }