[geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.666,1.667
Dirk Haun
dhaun at qs1489.pair.com
Fri Dec 28 08:34:20 EST 2007
Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv85119/public_html
Modified Files:
lib-common.php
Log Message:
Call COM_hit() from COM_siteFooter() instead of doing the UPDATE directly
Index: lib-common.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.666
retrieving revision 1.667
diff -C2 -d -r1.666 -r1.667
*** lib-common.php 25 Nov 2007 15:09:08 -0000 1.666
--- lib-common.php 28 Dec 2007 13:34:18 -0000 1.667
***************
*** 1278,1281 ****
--- 1278,1283 ----
}
+ COM_hit();
+
// Set template directory
$footer = new Template( $_CONF['path_layout'] );
***************
*** 1289,1294 ****
// Do variable assignments
- DB_change( $_TABLES['vars'], 'value', 'value + 1', 'name', 'totalhits', '', true );
-
$footer->set_var( 'xhtml', XHTML );
$footer->set_var( 'site_url', $_CONF['site_url']);
--- 1291,1294 ----
***************
*** 3886,3890 ****
global $_TABLES;
! DB_query( "UPDATE {$_TABLES['vars']} SET value = value + 1 WHERE name = 'totalhits'" );
}
--- 3886,3890 ----
global $_TABLES;
! DB_change($_TABLES['vars'], 'value', 'value + 1', 'name', 'totalhits', '', true);
}
More information about the geeklog-cvs
mailing list