mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
Bugfix: unable to disable page protection. Fixes #36.
This commit is contained in:
parent
41d18dc539
commit
839767ad62
3 changed files with 3 additions and 3 deletions
|
@ -1242,7 +1242,7 @@ register_module([
|
||||||
|
|
||||||
if(!$toggled && $pageindex->$page->protect === true)
|
if(!$toggled && $pageindex->$page->protect === true)
|
||||||
{
|
{
|
||||||
$pageindex->$page->protected = false;
|
$pageindex->$page->protect = false;
|
||||||
$toggled = false;
|
$toggled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
"author": "Starbeamrainbowlabs",
|
"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.",
|
"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",
|
"id": "action-protect",
|
||||||
"lastupdate": 1447320482,
|
"lastupdate": 1447320607,
|
||||||
"optional": false
|
"optional": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,7 @@ register_module([
|
||||||
|
|
||||||
if(!$toggled && $pageindex->$page->protect === true)
|
if(!$toggled && $pageindex->$page->protect === true)
|
||||||
{
|
{
|
||||||
$pageindex->$page->protected = false;
|
$pageindex->$page->protect = false;
|
||||||
$toggled = false;
|
$toggled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue