From 07c49547f69f34b25206f0de6af5d0a9ddcac1ad Mon Sep 17 00:00:00 2001 From: danpros Date: Sat, 1 Nov 2025 15:20:56 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index e4a030e..74b4693 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1754,7 +1754,8 @@ function popular_posts($custom = null, $count = null) $arr = explode('post_', $key); if (isset($arr[1])) { foreach($posts_list as $in => $f) { - if (strpos($f['basename'], $arr[1] . '.md') !== false ) { + $ex = explode('_', $f['basename']); + if ($ex[2] == $arr[1] . '.md') { $tmp[] = $f; if ($i++ >= $count) break;