From 3d8b03716963fa29e117c87cfb963bafe6400636 Mon Sep 17 00:00:00 2001 From: danpros Date: Sat, 27 Jan 2024 00:39:11 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 15eebfd..418a2d2 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -131,8 +131,8 @@ function get_draft_subpages($static = null) if ($static != null) { $stringLen = strlen($static); return array_filter($_draftSubpage, function ($sub_page) use ($static, $stringLen) { - $x = str_replace('content/static/', '', $sub_page['dirname']); - $y = explode('.', $x); + $x = explode('/', $sub_page['dirname']); + $y = explode('.', $x[2]); if (isset($y[1])) { $z = $y[1]; } else {