• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-jp-ancient: Commit

Nucleus CMS日本語版SVNをgit-svnしたもの。リポジトリの変換作業用


Commit MetaInfo

Revisãod29203e66b5fad6d611967d5396ec83c39413b80 (tree)
Hora2007-12-05 10:28:41
Autorkmorimatsu <kmorimatsu@1ca2...>
Commiterkmorimatsu

Mensagem de Log

Bug fix: archiveprevexists, archivenextexists

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/branches/branch-3-3@358 1ca29b6e-896d-4ea0-84a5-967f57386b96

Mudança Sumário

Diff

--- a/utf8/nucleus/libs/globalfunctions.php
+++ b/utf8/nucleus/libs/globalfunctions.php
@@ -13,8 +13,8 @@
1313 /**
1414 * @license http://nucleuscms.org/license.txt GNU General Public License
1515 * @copyright Copyright (C) 2002-2007 The Nucleus Group
16- * @version $Id: globalfunctions.php,v 1.23.2.4 2007-12-02 23:49:30 kmorimatsu Exp $
17- * $NucleusJP: globalfunctions.php,v 1.23.2.3 2007/10/30 19:05:20 kmorimatsu Exp $
16+ * @version $Id: globalfunctions.php,v 1.23.2.5 2007-12-05 01:28:41 kmorimatsu Exp $
17+ * $NucleusJP: globalfunctions.php,v 1.23.2.4 2007/12/02 23:49:30 kmorimatsu Exp $
1818 */
1919
2020 // needed if we include globalfunctions from install.php
@@ -843,10 +843,10 @@ function selector() {
843843 global $archivenext, $archiveprev, $archivetype, $archivenextexists, $archiveprevexists;
844844
845845 // sql queries for the timestamp of the first and the last published item
846- $query = "SELECT UNIX_TIMESTAMP(itime) as result FROM ".sql_table('item')." WHERE idraft=0 ORDER BY itime ASC";
847- $first_timestamp=quickQuery ($query);
848- $query = "SELECT UNIX_TIMESTAMP(itime) as result FROM ".sql_table('item')." WHERE idraft=0 ORDER BY itime DESC";
849- $last_timestamp=quickQuery ($query);
846+ $query = "SELECT UNIX_TIMESTAMP(itime) as result FROM ".sql_table('item')." WHERE idraft=0 AND iblog=".(int)($blogid ? $blogid : $CONF['DefaultBlog'])." ORDER BY itime ASC";
847+ $first_timestamp=quickQuery ($query);
848+ $query = "SELECT UNIX_TIMESTAMP(itime) as result FROM ".sql_table('item')." WHERE idraft=0 AND iblog=".(int)($blogid ? $blogid : $CONF['DefaultBlog'])." ORDER BY itime DESC";
849+ $last_timestamp=quickQuery ($query);
850850
851851 sscanf($archive, '%d-%d-%d', $y, $m, $d);
852852
Show on old repository browser