Commit MetaInfo

修订版e35bce21a0dfecfe2b30f50f10ca9bd2d5a59696 (tree)
时间2017-08-18 04:10:45
作者umorigu <umorigu@gmai...>
Commiterumorigu

Log Message

BugTrack/2361 Simple Pagename URL for ls2 plugin

更改概述

差异

--- a/plugin/ls2.inc.php
+++ b/plugin/ls2.inc.php
@@ -126,10 +126,9 @@ function plugin_ls2_get_headings($page, & $params, $level, $include = FALSE)
126126 $is_done = (isset($params["page_$page"]) && $params["page_$page"] > 0);
127127 if (! $is_done) $params["page_$page"] = ++$_ls2_anchor;
128128
129- $r_page = rawurlencode($page);
130129 $s_page = htmlsc($page);
131130 $title = $s_page . ' ' . get_pg_passage($page, FALSE);
132- $href = $script . '?cmd=read&amp;page=' . $r_page;
131+ $href = $script . '?' . pagename_urlencode($page);
133132
134133 plugin_ls2_list_push($params, $level);
135134 $ret = $include ? '<li>include ' : '<li>';
Show on old repository browser