1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

Add italics message on page after redirect

This commit is contained in:
Starbeamrainbowlabs 2015-10-03 13:35:44 +01:00
parent f1824243f5
commit 3ea7d60e00
3 changed files with 11 additions and 3 deletions

View file

@ -1810,7 +1810,11 @@ register_module([
$title = "$env->page - $settings->sitename";
if(isset($pageindex->$page->protect) && $pageindex->$page->protect === true)
$title = $settings->protectedpagechar . $title;
$content = "<h1>$env->page</h1>";
$content = "<h1>$env->page</h1>\n";
// Add an extra message if the requested was redirected from another page
if(isset($_GET["redirected_from"]))
$content .= "<p><em>Redirected from <a href='?page=" . rawurlencode($_GET["redirected_from"]) . "&redirect=no'>" . $_GET["redirected_from"] . "</a>.</em></p>";
$parsing_start = microtime(true);

View file

@ -140,7 +140,7 @@
"author": "Starbeamrainbowlabs",
"description": "Allows you to view pages. You reallyshould include this one.",
"id": "page-view",
"lastupdate": 1443875269,
"lastupdate": 1443875677,
"optional": false
},
{

View file

@ -49,7 +49,11 @@ register_module([
$title = "$env->page - $settings->sitename";
if(isset($pageindex->$page->protect) && $pageindex->$page->protect === true)
$title = $settings->protectedpagechar . $title;
$content = "<h1>$env->page</h1>";
$content = "<h1>$env->page</h1>\n";
// Add an extra message if the requested was redirected from another page
if(isset($_GET["redirected_from"]))
$content .= "<p><em>Redirected from <a href='?page=" . rawurlencode($_GET["redirected_from"]) . "&redirect=no'>" . $_GET["redirected_from"] . "</a>.</em></p>";
$parsing_start = microtime(true);