• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisão5e64bfbddcd307810b58966d69d29d5e1863f08d (tree)
Hora2004-08-10 21:56:30
Autorhenoheno <henoheno>
Commiterhenoheno

Mensagem de Log

Cleanup and shrink a little. Aligh the order

Mudança Sumário

Diff

--- a/plugin/calendar_viewer.inc.php
+++ b/plugin/calendar_viewer.inc.php
@@ -1,7 +1,7 @@
11 <?php
22 /*
33 * PukiWiki calendar_viewerプラグイン
4- * $Id: calendar_viewer.inc.php,v 1.16 2004/08/10 12:50:20 henoheno Exp $
4+ * $Id: calendar_viewer.inc.php,v 1.17 2004/08/10 12:56:30 henoheno Exp $
55 * calendarrecentプラグインを元に作成
66 */
77
@@ -43,20 +43,15 @@ function plugin_calendar_viewer_convert()
4343 global $_msg_calendar_viewer_right, $_msg_calendar_viewer_left;
4444 global $_msg_calendar_viewer_restrict;
4545
46- // *デフォルト値をセット
47- // 基準となるページ名
48- $pagename = '';
49- // 表示する件数制限
50- $limit_page = 7;
51- // 一覧表示する年月
52- $date_YM = '';
53- // 動作モード
54- $mode = 'past';
55- // 日付のセパレータ calendar2なら'-' calendarなら''
56- $date_sep = '-';
46+ // デフォルト値
47+ $pagename = ''; // 基準となるページ名
48+ $limit_page = 7; // 表示する件数制限
49+ $date_YM = ''; // 一覧表示する年月
50+ $mode = 'past'; // 動作モード
51+ $date_sep = '-'; // 日付のセパレータ calendar2なら'-' calendarなら''
5752
5853
59- // *引数の確認
54+ // 引数の確認
6055 if (func_num_args() >= 2){
6156 $func_vars_array = func_get_args();
6257
@@ -77,15 +72,15 @@ function plugin_calendar_viewer_convert()
7772 $limit_page = 31;
7873 } else if (preg_match('/^[0-9]+$/', $func_vars_array[1])){
7974 // n日分表示
80- $limit_pitch = $func_vars_array[1];
75+ $page_YM = '';
8176 $limit_page = $limit_pitch;
8277 $limit_base = 0;
83- $page_YM = '';
78+ $limit_pitch = $func_vars_array[1];
8479 } else if (preg_match('/([0-9]+)\*([0-9]+)/', $func_vars_array[1], $reg_array)){
85- $limit_pitch = $reg_array[2];
86- $limit_page = $reg_array[1] + $limit_pitch;
87- $limit_base = $reg_array[1];
8880 $page_YM = '';
81+ $limit_base = $reg_array[1];
82+ $limit_page = $reg_array[1] + $limit_pitch;
83+ $limit_pitch = $reg_array[2];
8984 } else {
9085 return $_err_calendar_viewer_param2;
9186 }