Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15572
Modified Files:
Tag: branch-smarty
serendipity_functions.inc.php NEWS
Log Message:
MFH
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.214.2.10
retrieving revision 1.214.2.11
diff -u -d -r1.214.2.10 -r1.214.2.11
--- NEWS 16 Sep 2004 18:07:44 -0000 1.214.2.10
+++ NEWS 17 Sep 2004 09:44:55 -0000 1.214.2.11
@@ -6,15 +6,18 @@
* RSS Feed export will not contain rewritten URLs using event
plugins (garvinhicking)
- * Updated upgrader to use MySQL as fallback when looking for
- appropriate database updates and none was found for the selected
+ * Updated upgrader to use MySQL as fallback when looking for
+ appropriate database updates and none was found for the selected
database type (tomsommer)
* Added support for Smarty Templating. (garvinhicking, tomsommer)
-Version 0.7-beta3 (September 16h, 2004)
+Version 0.7-beta3 ()
------------------------------------------------------------------------
+ * Fixed invalid standard-SQL 'CURRENT_DATE' to use a real date
+ string. Fixes Exit-Tracking with SQLite. (garvinhicking)
+
* Fixed footer printing wrong amount of entries when entry was
assigned to more than one category. Thanks to Kris/weigon for
helping. (garvinhicking)
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.419.2.18
retrieving revision 1.419.2.19
diff -u -d -r1.419.2.18 -r1.419.2.19
--- serendipity_functions.inc.php 16 Sep 2004 13:54:03 -0000 1.419.2.18
+++ serendipity_functions.inc.php 17 Sep 2004 09:44:55 -0000 1.419.2.19
@@ -3102,7 +3102,7 @@
AND port = '%s'
AND path = '%s'
AND query = '%s'
- AND day = CURRENT_DATE
+ AND day = '%s'
%s",
$serendipity['dbPrefix'],
@@ -3112,6 +3112,7 @@
serendipity_db_escape_string($url_parts['port']),
serendipity_db_escape_string($url_parts['path']),
serendipity_db_escape_string($url_parts['query']),
+ date('Y-m-d'),
($entry_id != 0) ? "AND entry_id = '". (int)$entry_id ."'" : ''
)
);
@@ -3121,11 +3122,12 @@
sprintf(
"INSERT INTO %s%s
(entry_id, day, count, scheme, host, port, path, query)
- VALUES (%d, CURRENT_DATE, 1, '%s', '%s', '%s', '%s', '%s')",
+ VALUES (%d, '%s', 1, '%s', '%s', '%s', '%s', '%s')",
$serendipity['dbPrefix'],
$list,
(int)$entry_id,
+ date('Y-m-d'),
serendipity_db_escape_string($url_parts['scheme']),
serendipity_db_escape_string($url_parts['host']),
serendipity_db_escape_string($url_parts['port']),
|