From 280af1cb2de62b2f68771a160697328d9249b81d Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 25 Mar 2025 23:19:26 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 4b402e2..9388a57 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1428,7 +1428,12 @@ function get_categorycount($var) foreach ($posts as $index => $v) { - if (stripos($v['dirname'], '/' . $var . '/') !== false) { + // dirname string + $dirname = $v['dirname']; + + $str = explode('/', $dirname); + + if (strtolower($var) === strtolower($str[3])) { $tmp[] = $v; }