• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

コミットメタ情報

リビジョンa9672b4d98cc6919c3ed2f65137824d3642eb0e0 (tree)
日時2021-12-05 14:53:32
作者umorigu <umorigu@gmai...>
コミッターumorigu

ログメッセージ

calendar_viewer

変更サマリ

差分

--- a/plugin/calendar_viewer.inc.php
+++ b/plugin/calendar_viewer.inc.php
@@ -1,7 +1,7 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone
33 // calendar_viewer.inc.php
4-// Copyright 2002-2020 PukiWiki Development Team
4+// Copyright 2002-2021 PukiWiki Development Team
55 // License: GPL v2 or (at your option) any later version
66 //
77 // Calendar viewer plugin - List pages that calendar/calnedar2 plugin created
@@ -55,7 +55,7 @@ define('PLUGIN_CALENDAR_VIEWER_USAGE',
5555
5656 function plugin_calendar_viewer_convert()
5757 {
58- global $vars, $get, $post, $script, $weeklabels;
58+ global $vars, $get, $post, $weeklabels;
5959 global $_msg_calendar_viewer_right, $_msg_calendar_viewer_left;
6060 global $_msg_calendar_viewer_restrict, $_err_calendar_viewer_param2;
6161
@@ -164,9 +164,6 @@ function plugin_calendar_viewer_convert()
164164 } else {
165165 $body = str_replace('$1', $page, $_msg_calendar_viewer_restrict);
166166 }
167-
168- $r_page = pagename_urlencode($page);
169-
170167 if (PLUGIN_CALENDAR_VIEWER_DATE_FORMAT !== FALSE) {
171168 $time = strtotime(basename($page)); // $date_sep must be assumed '-' or ''!
172169 if ($time === FALSE || $time === -1) {
@@ -184,15 +181,13 @@ function plugin_calendar_viewer_convert()
184181 }
185182
186183 if (PKWK_READONLY) {
187- $link = $script . '?' . $r_page;
184+ $link = get_page_uri($page);
188185 } else {
189- $link = $script . '?cmd=edit&amp;page=' . $r_page;
186+ $link = get_base_uri() . '?cmd=edit&amp;page=' . pagename_urlencode($page);
190187 }
191- $link = '<a href="' . $link . '">' . $s_page . '</a>';
192-
193- $head = '<h1>' . $link . '</h1>' . "\n";
188+ $link_html = '<a href="' . $link . '">' . $s_page . '</a>';
189+ $head = '<h1>' . $link_html . '</h1>' . "\n";
194190 $return_body .= $head . $body;
195-
196191 ++$tmp;
197192 }
198193
@@ -253,7 +248,7 @@ function plugin_calendar_viewer_convert()
253248 if ($left_YM != '' || $right_YM != '') {
254249 $s_date_sep = htmlsc($date_sep);
255250 $left_link = $right_link = '';
256- $link = $script . '?plugin=calendar_viewer&amp;mode=' . $mode .
251+ $link = get_base_uri() . '?plugin=calendar_viewer&amp;mode=' . $mode .
257252 '&amp;file=' . rawurlencode($simple_pagename) .
258253 '&amp;date_sep=' . $s_date_sep . '&amp;';
259254 if ($left_YM != '')
@@ -277,7 +272,7 @@ function plugin_calendar_viewer_convert()
277272
278273 function plugin_calendar_viewer_action()
279274 {
280- global $vars, $get, $post, $script;
275+ global $vars, $get, $post;
281276
282277 $date_sep = '-';
283278