From 4cde193e2aa10cf424294fccf509f1839e648b55 Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Sun, 28 Sep 2014 08:41:38 +0700 Subject: [PATCH] Compatibility with previous versions --- system/admin/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/admin/admin.php b/system/admin/admin.php index e3e52ac..fe17acd 100644 --- a/system/admin/admin.php +++ b/system/admin/admin.php @@ -47,7 +47,7 @@ function edit_post($title, $tag, $url, $content, $oldfile, $destination = null, $oldurl = explode('_', $oldfile); if($date !== null) { - $oldurl[0] = substr($oldurl[0],0,-19) . date('Y-m-d-h-i-s',strtotime($date)); + $oldurl[0] = substr($oldurl[0], 0, strrpos($oldurl[0], '/')) . '/' . date('Y-m-d-h-i-s',strtotime($date)); } $post_title = $title;