]> git.mjollnir.org Git - s9y.git/commitdiff
* Allow to submit comments to future entries, when showing
authorgarvinhicking <garvinhicking>
Wed, 27 Feb 2008 10:01:12 +0000 (10:01 +0000)
committergarvinhicking <garvinhicking>
Wed, 27 Feb 2008 10:01:12 +0000 (10:01 +0000)
      future entries is enabled (garvinhicking)

docs/NEWS
include/functions_comments.inc.php

index 0a81c4adf79b27d89018bace96a0c09e210c3390..743a888821087e2578d0b3746a0170f8605d37b6 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -5,7 +5,12 @@ Version 1.3 ()
 
     * Updated statistics plugin to contain per week/day visitors.
       (roti)
-      
+
+    * Updated hungarian language
+    
+    * Allow to submit comments to future entries, when showing
+      future entries is enabled (garvinhicking)      
+
 Version 1.3-beta1 (February 25th)
 ------------------------------------------------------------------------
 
index 875c6f4b8cb9f55e9867bd597b2f8722702a16d3..cc41dcfa70225fd1b62a5244132963750117e338 100644 (file)
@@ -591,8 +591,12 @@ function serendipity_saveComment($id, $commentInfo, $type = 'NORMAL', $source =
                  FROM {$serendipity['dbPrefix']}entries e, {$serendipity['dbPrefix']}authors a
                  WHERE e.id  = '". (int)$id ."'
                    AND e.isdraft = 'false'
-                   AND e.timestamp <= " . time() . "
                    AND e.authorid = a.authorid";
+        if (!serendipity_db_bool($serendipity['showFutureEntries'])) {
+            $query .= " AND e.timestamp <= " . serendipity_db_time();
+
+        }
+
         $row = serendipity_db_query($query, true); // Get info on author/entry
         if (!is_array($row) || empty($id)) {
             // No associated entry found.