mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Bugfix: Missing Semicolon in module page-delete
This commit is contained in:
parent
4cabf42666
commit
2daca17294
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ register_module([
|
|||
<p><a href='index.php?action=delete&page=$env->page&delete=yes'>Click here to delete $env->page.</a></p>
|
||||
<p><a href='index.php?action=view&page=$env->page'>Click here to go back.</a>"));
|
||||
}
|
||||
$page = $env->page
|
||||
$page = $env->page;
|
||||
unset($pageindex->$page); //delete the page from the page index
|
||||
file_put_contents("./pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT)); //save the new page index
|
||||
unlink("./$env->page.md"); //delete the page from the disk
|
||||
|
|
Loading…
Reference in a new issue