[geeklog-hg] geeklog: Fixed a bug where a portal block wasn't updated in Post...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Mon Feb 3 07:33:25 EST 2014


changeset 9475:1f6433ff633f
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/1f6433ff633f
user: Kenji ITO <mystralkk at gmail.com>
date: Mon Feb 03 21:32:20 2014 +0900
description:
Fixed a bug where a portal block wasn't updated in PostgreSQL

diffstat:

 public_html/admin/block.php |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 75c4bd3d6887 -r 1f6433ff633f public_html/admin/block.php
--- a/public_html/admin/block.php	Mon Feb 03 14:58:04 2014 +0900
+++ b/public_html/admin/block.php	Mon Feb 03 21:32:20 2014 +0900
@@ -686,7 +686,7 @@
             
              $sql['pgsql'] = "INSERT INTO {$_TABLES['blocks']} "
              .'(bid,name,title,help,type,blockorder,content,rdfurl,rdfupdated,rdflimit,phpblockfn,onleft,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon,is_enabled,allow_autotags,cache_time) '
-             ."VALUES ((SELECT NEXTVAL('{$_TABLES['blocks']}_bid_seq')),'$name','$title','$help','$type','$blockorder','$content','$rdfurl',CURRENT_TIMESTAMP,'$rdflimit','$phpblockfn',$onleft,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$is_enabled,$allow_autotags,$cache_time)";
+             ."VALUES ((SELECT NEXTVAL('{$_TABLES['blocks']}_bid_seq')),'$name','$title','$help','$type','$blockorder','$content','$rdfurl','1970-01-01','$rdflimit','$phpblockfn',$onleft,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$is_enabled,$allow_autotags,$cache_time)";
              
              DB_query($sql);
              $bid = DB_insertId();



More information about the geeklog-cvs mailing list