mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
action-protect: fix
This commit is contained in:
parent
d5ef65ce01
commit
51be347000
2 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
|
|||
- `action=watchlist-edit`: `returnto`, `do`
|
||||
- `action=watchlist`: `format`
|
||||
- `action=hash`: `string`
|
||||
- `action=protect`: `page`
|
||||
- [security] Automatically run page titles through `htmlentities()`
|
||||
- Fixed a weird bug in the `stats-update` action causing warnings
|
||||
- search: Properly apply weightings of matches in page titles and tags
|
||||
|
|
|
@ -53,7 +53,7 @@ register_module([
|
|||
|
||||
$state = ($pageindex->$page->protect ? "enabled" : "disabled");
|
||||
$title = "Page protection $state.";
|
||||
exit(page_renderer::render_main($title, "<p>Page protection for $env->page has been $state.</p><p><a href='?action=$settings->defaultaction&page=$env->page'>Go back</a>."));
|
||||
exit(page_renderer::render_main($title, "<p>Page protection for $env->page_safe has been $state.</p><p><a href='?action=$settings->defaultaction&page=".rawurlencode($env->page)."'>Go back</a>."));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue