|
|
@ -8,6 +8,7 @@ if (isset($p->file)) { |
|
|
$content = file_get_contents($url); |
|
|
$content = file_get_contents($url); |
|
|
$oldtitle = get_content_tag('t', $content, 'Untitled'); |
|
|
$oldtitle = get_content_tag('t', $content, 'Untitled'); |
|
|
$olddescription = get_content_tag('d', $content); |
|
|
$olddescription = get_content_tag('d', $content); |
|
|
|
|
|
$oldtag = get_content_tag('tag', $content); |
|
|
$oldvideo = get_content_tag('video', $content); |
|
|
$oldvideo = get_content_tag('video', $content); |
|
|
$oldcontent = remove_html_comments($content); |
|
|
$oldcontent = remove_html_comments($content); |
|
|
|
|
|
|
|
|
@ -15,7 +16,10 @@ $dir = substr($url, 0, strrpos($url, '/')); |
|
|
$isdraft = explode('/', $dir); |
|
|
$isdraft = explode('/', $dir); |
|
|
$oldurl = explode('_', $url); |
|
|
$oldurl = explode('_', $url); |
|
|
|
|
|
|
|
|
$oldtag = $oldurl[1]; |
|
|
|
|
|
|
|
|
if (empty($oldtag)) { |
|
|
|
|
|
$oldtag = $oldurl[1]; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$oldmd = str_replace('.md', '', $oldurl[2]); |
|
|
$oldmd = str_replace('.md', '', $oldurl[2]); |
|
|
|
|
|
|
|
|
|