Browse Source

Compatibility with previous versions

pull/107/head v2.3
Danang Probo Sayekti 11 years ago
parent
commit
4cde193e2a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      system/admin/admin.php

+ 1
- 1
system/admin/admin.php View File

@ -47,7 +47,7 @@ function edit_post($title, $tag, $url, $content, $oldfile, $destination = null,
$oldurl = explode('_', $oldfile); $oldurl = explode('_', $oldfile);
if($date !== null) 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; $post_title = $title;


Loading…
Cancel
Save