summaryrefslogtreecommitdiff
path: root/modules/comment/comment.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-09-17 07:11:59 +0000
committerDries Buytaert <dries@buytaert.net>2008-09-17 07:11:59 +0000
commit7f29b142770cba60259a22f3760e2376b8e79790 (patch)
treed9ff4c7dfb29dfafb442c2cd1f2e91b2592e63bc /modules/comment/comment.install
parent6f8b5f9a5baaea6874ffe050ba0210b680070140 (diff)
downloadbrdo-7f29b142770cba60259a22f3760e2376b8e79790.tar.gz
brdo-7f29b142770cba60259a22f3760e2376b8e79790.tar.bz2
- Patch #305645 by pwolanin: ['REQUEST_TIME'] -> REQUEST_TIME. Improved developer experience.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r--modules/comment/comment.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index 556d225d9..ee0458696 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -14,11 +14,11 @@ function comment_enable() {
*/
function comment_update_1() {
// Change any future last comment timestamps to current time.
- db_query('UPDATE {node_comment_statistics} SET last_comment_timestamp = %d WHERE last_comment_timestamp > %d', $_SERVER['REQUEST_TIME'], $_SERVER['REQUEST_TIME']);
+ db_query('UPDATE {node_comment_statistics} SET last_comment_timestamp = %d WHERE last_comment_timestamp > %d', REQUEST_TIME, REQUEST_TIME);
// Unstuck node indexing timestamp if needed.
if (($last = variable_get('node_cron_last', FALSE)) !== FALSE) {
- variable_set('node_cron_last', min($_SERVER['REQUEST_TIME'], $last));
+ variable_set('node_cron_last', min(REQUEST_TIME, $last));
}
return array();