mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 04:26:22 +05:30
Update admin.php
This commit is contained in:
parent
b486a366d0
commit
c53518422b
1 changed files with 1 additions and 2 deletions
|
|
@ -509,8 +509,7 @@ function add_page($title, $url, $content, $description = null)
|
|||
$posts = get_static_pages();
|
||||
$timestamp = date('YmdHis');
|
||||
foreach ($posts as $index => $v) {
|
||||
$arr = explode('/', $v);
|
||||
if (strtolower($arr[2]) === strtolower($post_url . '.md')) {
|
||||
if (strtolower($v['basename']) === strtolower($post_url . '.md')) {
|
||||
$post_url = $post_url .'-'. $timestamp;
|
||||
} else {
|
||||
$post_url = $post_url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue