mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
Bugfix: Undefined variable $isloggedin on edit page
This commit is contained in:
parent
745c3cb072
commit
7da73d7c70
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue