OSDN Git Service

date footer does not work
authorkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 1 May 2007 08:39:18 +0000 (08:39 +0000)
committerkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 1 May 2007 08:39:18 +0000 (08:39 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/branches/branch-3-3@295 1ca29b6e-896d-4ea0-84a5-967f57386b96

euc/nucleus/libs/BLOG.php
utf8/nucleus/libs/BLOG.php

index 9fb7eae..e68e7ed 100755 (executable)
@@ -16,8 +16,8 @@
  *
  * @license http://nucleuscms.org/license.txt GNU General Public License
  * @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: BLOG.php,v 1.5 2007-04-20 08:20:31 kimitake Exp $
- * $NucleusJP: BLOG.php,v 1.4 2007/03/22 09:23:58 kimitake Exp $
+ * @version $Id: BLOG.php,v 1.5.2.1 2007-05-01 08:38:53 kimitake Exp $
+ * $NucleusJP: BLOG.php,v 1.5 2007/04/20 08:20:31 kimitake Exp $
  */
 
 if ( !function_exists('requestVar') ) exit;
@@ -170,6 +170,7 @@ class BLOG {
                $items = sql_query($query);
 
                // loop over all items
+               $old_date = 0;
                while ($item = mysql_fetch_object($items)) {
 
                        $item->timestamp = strtotime($item->itime);     // string timestamp -> unix timestamp
@@ -178,7 +179,6 @@ class BLOG {
                        $actions->setCurrentItem($item);
 
                        // add date header if needed
-                       $old_date = 0;
                        if ($dateheads) {
                                $new_date = date('dFY',$item->timestamp);
                                if ($new_date != $old_date) {
@@ -1112,4 +1112,4 @@ class BLOG {
 
 }
 
-?>
\ No newline at end of file
+?>
index 13ac707..cf03c92 100755 (executable)
@@ -16,8 +16,8 @@
  *
  * @license http://nucleuscms.org/license.txt GNU General Public License
  * @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: BLOG.php,v 1.12 2007-04-13 16:51:49 shizuki Exp $
- * $NucleusJP: BLOG.php,v 1.11 2007/03/20 19:31:29 kmorimatsu Exp $
+ * @version $Id: BLOG.php,v 1.12.2.1 2007-05-01 08:39:01 kimitake Exp $
+ * $NucleusJP: BLOG.php,v 1.12 2007/04/13 16:51:49 shizuki Exp $
  */
 
 if ( !function_exists('requestVar') ) exit;
@@ -170,6 +170,7 @@ class BLOG {
                $items = sql_query($query);
 
                // loop over all items
+               $old_date = 0;
                while ($item = mysql_fetch_object($items)) {
 
                        $item->timestamp = strtotime($item->itime);     // string timestamp -> unix timestamp
@@ -178,7 +179,6 @@ class BLOG {
                        $actions->setCurrentItem($item);
 
                        // add date header if needed
-                       $old_date = 0;
                        if ($dateheads) {
                                $new_date = date('dFY',$item->timestamp);
                                if ($new_date != $old_date) {
@@ -1112,4 +1112,4 @@ class BLOG {
 
 }
 
-?>
\ No newline at end of file
+?>