mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 05:22:59 +00:00
bugfixed edit action
prevented redirect when attempting to edit while editing is disabled
This commit is contained in:
parent
00e11ce6a4
commit
dbe9155367
1 changed files with 118 additions and 124 deletions
|
@ -504,12 +504,6 @@ switch($_GET["action"])
|
|||
* %edit%
|
||||
*/
|
||||
case "edit":
|
||||
if(!$editing)
|
||||
{
|
||||
http_response_code(203);
|
||||
header("location: index.php?page=$page");
|
||||
}
|
||||
|
||||
$filename = "$page.md";
|
||||
$creatingpage = !isset($pageindex->$page);
|
||||
if((isset($_GET["newpage"]) and $_GET["newpage"] == "true") or $creatingpage)
|
||||
|
|
Loading…
Reference in a new issue