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);