diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-13 01:18:01 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-13 01:18:01 +0100 |
commit | bc43dd704fc89188faadb42d313a41f8b2929c0c (patch) | |
tree | e3d55e4b2cff99d4bdae91475a7249381c846ba9 /lib/request.php | |
parent | 14e3d77d64a83704d224ca91b5736ec2e94ee01b (diff) | |
parent | 68fa0b7dcc4a45e4f44b754626440091608ccc85 (diff) | |
download | nextcloud-server-bc43dd704fc89188faadb42d313a41f8b2929c0c.tar.gz nextcloud-server-bc43dd704fc89188faadb42d313a41f8b2929c0c.zip |
Merge branch 'master' into fixing-1424-master
Conflicts:
settings/js/users.js
Diffstat (limited to 'lib/request.php')
-rwxr-xr-x | lib/request.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/request.php b/lib/request.php index 1661a1406ca..3c668b02c5f 100755 --- a/lib/request.php +++ b/lib/request.php @@ -149,4 +149,16 @@ class OC_Request { return 'gzip'; return false; } + + /** + * @brief Check if the requester sent along an mtime + * @returns false or an mtime + */ + static public function hasModificationTime () { + if (isset($_SERVER['HTTP_X_OC_MTIME'])) { + return $_SERVER['HTTP_X_OC_MTIME']; + } else { + return false; + } + } } |