function plugin_ls2_convert()
{
- global $script, $vars, $_ls2_msg_title;
+ global $vars, $_ls2_msg_title;
$params = array(
'link' => FALSE,
if (isset($params['title'])) $tmp[] = 'title=1';
if (isset($params['include'])) $tmp[] = 'include=1';
- return '<p><a href="' . $script . '?' . join('&', $tmp) . '">' .
+ return '<p><a href="' . get_base_uri() . '?' . join('&', $tmp) . '">' .
$title . '</a></p>' . "\n";
}
function plugin_ls2_get_headings($page, & $params, $level, $include = FALSE)
{
- global $script;
static $_ls2_anchor = 0;
// ページが未表示のとき
$s_page = htmlsc($page);
$title = $s_page . ' ' . get_pg_passage($page, FALSE);
- $href = $script . '?' . pagename_urlencode($page);
+ $href = get_page_uri($page);
plugin_ls2_list_push($params, $level);
$ret = $include ? '<li>include ' : '<li>';