Bugfix: unable to disable page protection. Fixes #36.

This commit is contained in:
Starbeamrainbowlabs 2015-11-12 09:31:50 +00:00
parent 41d18dc539
commit 839767ad62
3 changed files with 3 additions and 3 deletions

View File

@ -1242,7 +1242,7 @@ register_module([
if(!$toggled && $pageindex->$page->protect === true)
{
$pageindex->$page->protected = false;
$pageindex->$page->protect = false;
$toggled = false;
}

View File

@ -14,7 +14,7 @@
"author": "Starbeamrainbowlabs",
"description": "Exposes Pepperminty Wiki's new page protection mechanism and makes the protect button in the 'More...' menu on the top bar work.",
"id": "action-protect",
"lastupdate": 1447320482,
"lastupdate": 1447320607,
"optional": false
},
{

View File

@ -24,7 +24,7 @@ register_module([
if(!$toggled && $pageindex->$page->protect === true)
{
$pageindex->$page->protected = false;
$pageindex->$page->protect = false;
$toggled = false;
}