mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 16:33:00 +00:00
Bugfix: Don't redirect when navigating to a redirect page from a page list
This commit is contained in:
parent
1813fe73e2
commit
8aff75a805
1 changed files with 5 additions and 1 deletions
|
@ -286,7 +286,11 @@ function generate_page_list($pagelist)
|
||||||
!empty($pageindex->$pagename->redirect))
|
!empty($pageindex->$pagename->redirect))
|
||||||
$pageDisplayName = "<em>$pageDisplayName</em>";
|
$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 .= "&redirect=no";
|
||||||
|
|
||||||
|
$result .= "<li><a href='$url'>$pageDisplayName</a>
|
||||||
<em class='size'>(" . human_filesize($pageindex->$pagename->size) . ")</em>
|
<em class='size'>(" . human_filesize($pageindex->$pagename->size) . ")</em>
|
||||||
<span class='editor'><span class='texticon cursor-query' title='Last editor'>✎</span> " . $pageindex->$pagename->lasteditor . "</span>
|
<span class='editor'><span class='texticon cursor-query' title='Last editor'>✎</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>
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue