summaryrefslogtreecommitdiff
path: root/modules/blogapi/blogapi.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-09-06 08:36:22 +0000
committerDries Buytaert <dries@buytaert.net>2008-09-06 08:36:22 +0000
commite5b0e5f76c0695a01d13c55147a8287df8750594 (patch)
treed4acfc3f1d038bccaea83e168fdd380d0dfa0708 /modules/blogapi/blogapi.module
parentcbb639a16ffec82f498ae689818b010e040bf5b4 (diff)
downloadbrdo-e5b0e5f76c0695a01d13c55147a8287df8750594.tar.gz
brdo-e5b0e5f76c0695a01d13c55147a8287df8750594.tar.bz2
- Patch #302763 by Dave Reid, Rob Loach: replace time() by ['REQUEST_TIME'] as per Rasmus' suggestion. Removed drupal_referrer() for consistency.
Diffstat (limited to 'modules/blogapi/blogapi.module')
-rw-r--r--modules/blogapi/blogapi.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index 56408dbb4..e14c1e689 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -218,7 +218,7 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
}
if (user_access('administer nodes') && !isset($edit['date'])) {
- $edit['date'] = format_date(time(), 'custom', 'Y-m-d H:i:s O');
+ $edit['date'] = format_date($_SERVER['REQUEST_TIME'], 'custom', 'Y-m-d H:i:s O');
}
node_invoke_nodeapi($edit, 'blogapi new');