mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 03:26:20 +05:30
Update admin.php
This commit is contained in:
parent
7b2ac293a0
commit
a8e7ede67d
1 changed files with 1 additions and 1 deletions
|
|
@ -621,7 +621,7 @@ function edit_page($title, $url, $content, $oldfile, $revertPage, $publishDraft,
|
|||
if(!empty($revertPage)) {
|
||||
$dirDraft = $dir . '/draft';
|
||||
if (!is_dir($dirDraft)) {
|
||||
mkdir($dir, 0775, true);
|
||||
mkdir($dirDraft, 0775, true);
|
||||
}
|
||||
$newfile = $dirDraft . '/' . $post_url . '.md';
|
||||
file_put_contents($newfile, print_r($post_content, true));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue