1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

Bugfix: Undefined variable $isloggedin on edit page

This commit is contained in:
Starbeamrainbowlabs 2015-09-22 14:49:39 +01:00
parent 745c3cb072
commit 7da73d7c70
3 changed files with 3 additions and 3 deletions

View file

@ -1117,7 +1117,7 @@ register_module([
$pagetext = file_get_contents($filename); $pagetext = file_get_contents($filename);
} }
if((!$isloggedin and !$settings->anonedits) or !$settings->editing) if((!$env->is_logged_in and !$settings->anonedits) or !$settings->editing)
{ {
if(!$creatingpage) if(!$creatingpage)
{ {

View file

@ -45,7 +45,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Allows you to edit pages by adding the edit and save actions. You should probably include this one.", "description": "Allows you to edit pages by adding the edit and save actions. You should probably include this one.",
"id": "page-edit", "id": "page-edit",
"lastupdate": 1442929698 "lastupdate": 1442929757
}, },
{ {
"name": "Export", "name": "Export",

View file

@ -37,7 +37,7 @@ register_module([
$pagetext = file_get_contents($filename); $pagetext = file_get_contents($filename);
} }
if((!$isloggedin and !$settings->anonedits) or !$settings->editing) if((!$env->is_logged_in and !$settings->anonedits) or !$settings->editing)
{ {
if(!$creatingpage) if(!$creatingpage)
{ {