From 745c3cb07278990f65b80b9cb402659fd12ed6b0 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 22 Sep 2015 14:48:59 +0100 Subject: [PATCH] Bugfix: Faltal error on edit page --- build/index.php | 4 ++-- module_index.json | 4 ++-- modules/page-edit.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/index.php b/build/index.php index dff95e4..cc99cfd 100644 --- a/build/index.php +++ b/build/index.php @@ -1081,7 +1081,7 @@ register_module([ register_module([ "name" => "Page editor", - "version" => "0.9", + "version" => "0.9.1", "author" => "Starbeamrainbowlabs", "description" => "Allows you to edit pages by adding the edit and save actions. You should probably include this one.", "id" => "page-edit", @@ -1100,6 +1100,7 @@ register_module([ global $pageindex, $settings, $env; $filename = "$env->page.md"; + $page = $env->page; $creatingpage = !isset($pageindex->$page); if((isset($_GET["newpage"]) and $_GET["newpage"] == "true") or $creatingpage) { @@ -1111,7 +1112,6 @@ register_module([ } $pagetext = ""; - $page = $env->$page; if(isset($pageindex->$page)) { $pagetext = file_get_contents($filename); diff --git a/module_index.json b/module_index.json index 19ad4dd..7dba756 100644 --- a/module_index.json +++ b/module_index.json @@ -41,11 +41,11 @@ }, { "name": "Page editor", - "version": "0.9", + "version": "0.9.1", "author": "Starbeamrainbowlabs", "description": "Allows you to edit pages by adding the edit and save actions. You should probably include this one.", "id": "page-edit", - "lastupdate": 1442903905 + "lastupdate": 1442929698 }, { "name": "Export", diff --git a/modules/page-edit.php b/modules/page-edit.php index dd22429..1276dbc 100644 --- a/modules/page-edit.php +++ b/modules/page-edit.php @@ -1,7 +1,7 @@ "Page editor", - "version" => "0.9", + "version" => "0.9.1", "author" => "Starbeamrainbowlabs", "description" => "Allows you to edit pages by adding the edit and save actions. You should probably include this one.", "id" => "page-edit", @@ -20,6 +20,7 @@ register_module([ global $pageindex, $settings, $env; $filename = "$env->page.md"; + $page = $env->page; $creatingpage = !isset($pageindex->$page); if((isset($_GET["newpage"]) and $_GET["newpage"] == "true") or $creatingpage) { @@ -31,7 +32,6 @@ register_module([ } $pagetext = ""; - $page = $env->$page; if(isset($pageindex->$page)) { $pagetext = file_get_contents($filename);