summaryrefslogtreecommitdiff
path: root/library/WT/Controller/Base.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2012-09-14 22:09:16 +0000
committerfisharebest <fisharebest@gmail.com>2012-09-14 22:09:16 +0000
commitfec726602c1bc3ad9f4ffdf10c75cbbab498024f (patch)
treece16009c539b36083e1bb38445f613a408093673 /library/WT/Controller/Base.php
parente2a4517d059ac1522da1073e325e316baed87eba (diff)
downloadwebtrees-fec726602c1bc3ad9f4ffdf10c75cbbab498024f.tar.gz
webtrees-fec726602c1bc3ad9f4ffdf10c75cbbab498024f.tar.bz2
webtrees-fec726602c1bc3ad9f4ffdf10c75cbbab498024f.zip
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.
Diffstat (limited to 'library/WT/Controller/Base.php')
-rw-r--r--library/WT/Controller/Base.php2
1 files changed, 1 insertions, 1 deletions
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