• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

Commit MetaInfo

修訂02887f16864e3bb6051ca090be3f7af78735fc53 (tree)
時間2007-09-23 14:00:24
作者henoheno <henoheno>
Commiterhenoheno

Log Message

Footer should be shown at the bottom of the wiki table

Change Summary

差異

--- a/plugin/tracker.inc.php
+++ b/plugin/tracker.inc.php
@@ -1,6 +1,6 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone
3-// $Id: tracker.inc.php,v 1.71 2007/09/23 04:47:42 henoheno Exp $
3+// $Id: tracker.inc.php,v 1.72 2007/09/23 05:00:24 henoheno Exp $
44 // Copyright (C) 2003-2005, 2007 PukiWiki Developers Team
55 // License: GPL v2 or (at your option) any later version
66 //
@@ -1163,11 +1163,15 @@ class Tracker_list
11631163 }
11641164
11651165 // Loading template
1166- $header = $body = array();
1166+ // TODO: How do you feel single/multiple table rows with 'c'(decolation)?
1167+ $matches = $header = $body = $footer = array();
11671168 foreach (plugin_tracker_get_source($list) as $line) {
1168- if (preg_match('/^\|(.+)\|[hfc]$/i', $line)) {
1169- // TODO: Why c and f here
1170- $header[] = $line; // Table header, footer, and decoration
1169+ if (preg_match('/^\|.+\|([hfc])$/i', $line, $matches)) {
1170+ if (strtolower($matches[1]) == 'jf') {
1171+ $footer[] = $line; // Table footer
1172+ } else {
1173+ $header[] = $line; // Table header, and decoration
1174+ }
11711175 } else {
11721176 $body[] = $line; // The others
11731177 }
@@ -1187,6 +1191,9 @@ class Tracker_list
11871191 $source[] = $line;
11881192 }
11891193 }
1194+ foreach($footer as $line) {
1195+ $source[] = preg_replace_callback($regex, array(& $this, '_replace_title'), $line);
1196+ }
11901197
11911198 return implode('', $source);
11921199 }