1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

Bugfix: Don't redirect when navigating to a redirect page from a page list

This commit is contained in:
Starbeamrainbowlabs 2020-07-07 21:11:13 +01:00
parent 1813fe73e2
commit 8aff75a805
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -286,7 +286,11 @@ function generate_page_list($pagelist)
!empty($pageindex->$pagename->redirect))
$pageDisplayName = "<em>$pageDisplayName</em>";
$result .= "<li><a href='index.php?page=" . rawurlencode($pagename) . "'>$pageDisplayName</a>
$url = "index.php?page=" . rawurlencode($pagename);
if(isset($pageindex->$pagename->redirect) && $pageindex->$pagename->redirect == true)
$url .= "&amp;redirect=no";
$result .= "<li><a href='$url'>$pageDisplayName</a>
<em class='size'>(" . human_filesize($pageindex->$pagename->size) . ")</em>
<span class='editor'><span class='texticon cursor-query' title='Last editor'>&#9998;</span> " . $pageindex->$pagename->lasteditor . "</span>
<time class='cursor-query' title='" . date("l jS \of F Y \a\\t h:ia T", $pageindex->$pagename->lastmodified) . "'>" . human_time_since($pageindex->$pagename->lastmodified) . "</time>