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;