From 508e05287e0b2e4f648079081812dc362cccacea Mon Sep 17 00:00:00 2001 From: danpros Date: Fri, 5 Jan 2024 13:26:01 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 73dc1f1..ed1ff46 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -327,8 +327,7 @@ function rebuilt_cache($type = null) if (is_array($ftmp)) { foreach ($ftmp as $file) { $category_cache[] = pathinfo($file); - $x = explode('/', $file); - $cf[] = $x[2]; + $cf[] = pathinfo($file, PATHINFO_FILENAME); } } usort($category_cache, "sortfile_a");