1
0
Fork 0
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:
Starbeamrainbowlabs 2015-01-21 20:50:38 +00:00
parent 00e11ce6a4
commit dbe9155367

View file

@ -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)