* Allow to submit comments to future entries, when showing
future entries is enabled (garvinhicking)
This commit is contained in:
@ -5,7 +5,12 @@ Version 1.3 ()
|
|||||||
|
|
||||||
* Updated statistics plugin to contain per week/day visitors.
|
* Updated statistics plugin to contain per week/day visitors.
|
||||||
(roti)
|
(roti)
|
||||||
|
|
||||||
|
* Updated hungarian language
|
||||||
|
|
||||||
|
* Allow to submit comments to future entries, when showing
|
||||||
|
future entries is enabled (garvinhicking)
|
||||||
|
|
||||||
Version 1.3-beta1 (February 25th)
|
Version 1.3-beta1 (February 25th)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -591,8 +591,12 @@ function serendipity_saveComment($id, $commentInfo, $type = 'NORMAL', $source =
|
|||||||
FROM {$serendipity['dbPrefix']}entries e, {$serendipity['dbPrefix']}authors a
|
FROM {$serendipity['dbPrefix']}entries e, {$serendipity['dbPrefix']}authors a
|
||||||
WHERE e.id = '". (int)$id ."'
|
WHERE e.id = '". (int)$id ."'
|
||||||
AND e.isdraft = 'false'
|
AND e.isdraft = 'false'
|
||||||
AND e.timestamp <= " . time() . "
|
|
||||||
AND e.authorid = a.authorid";
|
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
|
$row = serendipity_db_query($query, true); // Get info on author/entry
|
||||||
if (!is_array($row) || empty($id)) {
|
if (!is_array($row) || empty($id)) {
|
||||||
// No associated entry found.
|
// No associated entry found.
|
||||||
|
Reference in New Issue
Block a user