Skip to content

Commit

Permalink
Compatibility with previous versions
Browse files Browse the repository at this point in the history
  • Loading branch information
danpros committed Sep 28, 2014
1 parent 15494c0 commit 4cde193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4cde193

Please sign in to comment.