From 18f5a5d2a44431411f92ac6f34958ead4fb07c84 Mon Sep 17 00:00:00 2001 From: danpros Date: Tue, 2 Mar 2021 18:53:26 +0700 Subject: [PATCH] Update admin.php --- system/admin/admin.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/system/admin/admin.php b/system/admin/admin.php index 15251f1..9dd3726 100644 --- a/system/admin/admin.php +++ b/system/admin/admin.php @@ -275,16 +275,6 @@ function edit_content($title, $tag, $url, $content, $oldfile, $destination = nul } $post_tag = implode(',', array_keys($newtag)); - - $posts = get_post_sorted(); - foreach ($posts as $index => $v) { - $arr = explode('_', $v['basename']); - if (strtolower($arr[2]) === strtolower($post_url . '.md')) { - $post_url = $post_url .'-'. $timestamp; - } else { - $post_url = $post_url; - } - } if ($description !== null) { if (!empty($description)) { @@ -529,17 +519,6 @@ function edit_page($title, $url, $content, $oldfile, $destination = null, $descr $post_description = ""; } - $posts = get_static_pages(); - $timestamp = date('YmdHis'); - foreach ($posts as $index => $v) { - $arr = explode('/', $v); - if (strtolower($arr[2]) === strtolower($post_url . '.md')) { - $post_url = $post_url .'-'. $timestamp; - } else { - $post_url = $post_url; - } - } - $post_content = '' . $post_description . "\n\n" . $content; if (!empty($post_title) && !empty($post_url) && !empty($post_content)) {