summaryrefslogtreecommitdiffstats
path: root/lib/public/template.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-02 15:44:44 +0200
committerVincent Petry <pvince81@owncloud.com>2013-10-02 15:52:44 +0200
commit31e1c15db722d8363ceab6c97da14d703badb4f5 (patch)
tree9247f348bada53f064f12a050b337e61c5230da3 /lib/public/template.php
parent551e80979046358b9cbc8a0f8db0ff9cdf919e33 (diff)
downloadnextcloud-server-31e1c15db722d8363ceab6c97da14d703badb4f5.tar.gz
nextcloud-server-31e1c15db722d8363ceab6c97da14d703badb4f5.zip
Added dateOnly argument to relative_modified_date
Improved the template function relative_modified_date by adding an optional dateOnly argument which will output "today" or "yesterday" or "x days ago".
Diffstat (limited to 'lib/public/template.php')
-rw-r--r--lib/public/template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/template.php b/lib/public/template.php
index 3b1a4ed4906..b3bffaf1af9 100644
--- a/lib/public/template.php
+++ b/lib/public/template.php
@@ -90,8 +90,8 @@ function human_file_size( $bytes ) {
* @param $timestamp unix timestamp
* @returns human readable interpretation of the timestamp
*/
-function relative_modified_date($timestamp) {
- return(\relative_modified_date($timestamp));
+function relative_modified_date($timestamp, $dateOnly = false) {
+ return(\relative_modified_date($timestamp, $dateOnly));
}