mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 05:22:59 +00:00
Correct error messag when moving a page - fixes #121.
This commit is contained in:
parent
f64421c651
commit
99030913fe
4 changed files with 4 additions and 3 deletions
|
@ -24,6 +24,7 @@
|
|||
- Fxed huge issue with `contentonly` display mode.
|
||||
- Improved the search engine indexing algorithm. It now shouldn't choke on certain special characters (`[]{}|`) and will treat them as word boundaries.
|
||||
- Fixed tag links at the bottom of pages for tags with a single quote (`'`) in them.
|
||||
- Correct error message when attempting to move a page
|
||||
|
||||
## v0.12.1
|
||||
|
||||
|
|
|
@ -4912,7 +4912,7 @@ register_module([
|
|||
if($env->page == $new_name)
|
||||
exit(page_renderer::render_main("Moving $env->page - Error", "<p>You tried to move $page, but the new name you gave is the same as it's current name.</p>
|
||||
<p>It is possible that you tried to use some characters in the new name that are not allowed and were removed.</p>
|
||||
<p>Page names may only contain alphanumeric characters, dashes, and underscores.</p>"));
|
||||
<p>Page names may not contain any of these characters: <code>?%*:|\"><()[]</code></p>"));
|
||||
|
||||
if(isset($pageindex->$page->uploadedfile) and
|
||||
file_exists($new_name))
|
||||
|
|
|
@ -176,7 +176,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds an action to allow administrators to move pages.",
|
||||
"id": "page-move",
|
||||
"lastupdate": 1476906745,
|
||||
"lastupdate": 1480101990,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
|
|
@ -68,7 +68,7 @@ register_module([
|
|||
if($env->page == $new_name)
|
||||
exit(page_renderer::render_main("Moving $env->page - Error", "<p>You tried to move $page, but the new name you gave is the same as it's current name.</p>
|
||||
<p>It is possible that you tried to use some characters in the new name that are not allowed and were removed.</p>
|
||||
<p>Page names may only contain alphanumeric characters, dashes, and underscores.</p>"));
|
||||
<p>Page names may not contain any of these characters: <code>?%*:|\"><()[]</code></p>"));
|
||||
|
||||
if(isset($pageindex->$page->uploadedfile) and
|
||||
file_exists($new_name))
|
||||
|
|
Loading…
Reference in a new issue