diff --git a/system/admin/admin.php b/system/admin/admin.php index c44c2b9..953a28d 100644 --- a/system/admin/admin.php +++ b/system/admin/admin.php @@ -64,7 +64,7 @@ function edit_post($title, $tag, $url, $content, $oldfile, $destination = null) // The post date $postdate = strtotime($timestamp); // The post URL - $posturl = site_url().date('Y/m', $postdate).'/'.$url; + $posturl = site_url().date('Y/m', $postdate).'/'.$post_url; if($destination == 'admin/posts') { $redirect = site_url() . 'admin/posts'; @@ -107,7 +107,7 @@ function edit_page($title, $url, $content, $oldfile, $destination = null) { file_put_contents($newfile, print_r($post_content, true)); } - $posturl = site_url() . $url; + $posturl = site_url() . $post_url; if($destination == 'admin') { $redirect = site_url() . 'admin';