From fec726602c1bc3ad9f4ffdf10c75cbbab498024f Mon Sep 17 00:00:00 2001 From: fisharebest Date: Fri, 14 Sep 2012 22:09:16 +0000 Subject: Assume PHP time is the same as MySQL time. Both should use the same underlying OS function. Saves a DB query. Only call time() once. For consistency, and for a very minor performance tweak. --- library/WT/Controller/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/WT/Controller/Base.php') diff --git a/library/WT/Controller/Base.php b/library/WT/Controller/Base.php index 49ba97e78a..1318ecf6da 100644 --- a/library/WT/Controller/Base.php +++ b/library/WT/Controller/Base.php @@ -244,7 +244,7 @@ class WT_Controller_Base { var browserType = "'.$BROWSERTYPE.'"; var WT_SCRIPT_NAME = "'.WT_SCRIPT_NAME.'"; var WT_LOCALE = "'.WT_LOCALE.'"; - var accesstime = '.WT_DB::prepare("SELECT UNIX_TIMESTAMP(NOW())")->fetchOne().'; + var accesstime = '.WT_TIMESTAMP.'; ', self::JS_PRIORITY_HIGH); // Temporary fix for access to main menu hover elements on android touch devices -- cgit v1.3