• 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

Revision7b6b8acff829065892eca5408520041eb1e8e573 (tree)
Time2007-09-23 22:19:41
Authorhenoheno <henoheno>
Commiterhenoheno

Log Message

$rows['_match'] is not needed for your memory

Change Summary

Incremental Difference

--- 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.74 2007/09/23 12:56:42 henoheno Exp $
3+// $Id: tracker.inc.php,v 1.75 2007/09/23 13:19:41 henoheno Exp $
44 // Copyright (C) 2003-2005, 2007 PukiWiki Developers Team
55 // License: GPL v2 or (at your option) any later version
66 //
@@ -838,22 +838,21 @@ class Tracker_list
838838 '_real' => $basename,
839839 '_update' => $filetime,
840840 '_past' => $filetime,
841- '_match' => FALSE,
842841 );
843842
844843 // Load / Redefine cell
845844 $matches = array();
846- $row['_match'] = preg_match($this->pattern, $source, $matches);
847- unset($source);
848- if ($row['_match']) {
845+ if (preg_match($this->pattern, $source, $matches)) {
849846 array_shift($matches); // $matches[0] = all of the captured string
850847 foreach ($this->pattern_fields as $key => $fieldname) {
851848 $row[$fieldname] = trim($matches[$key]);
852849 unset($matches[$key]);
853850 }
851+ $this->rows[$basename] = $row;
852+ } else if (PLUGIN_TRACKER_LIST_SHOW_ERROR_PAGE) {
853+ $this->rows[$basename] = $row; // Error
854854 }
855855
856- $this->rows[$basename] = $row;
857856 return TRUE;
858857 }
859858
@@ -1190,7 +1189,6 @@ class Tracker_list
11901189 unset($t_header);
11911190 // Repeat
11921191 foreach ($rows as $row) {
1193- if (! PLUGIN_TRACKER_LIST_SHOW_ERROR_PAGE && ! $row['_match']) continue;
11941192 $this->_items = $row;
11951193 foreach ($t_body as $line) {
11961194 if (ltrim($line) != '') {