diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-10-04 05:53:13 -0700 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-10-04 05:53:13 -0700 |
commit | 48a4c67d483aee9e9a9e4b883ca085f7aa56e785 (patch) | |
tree | a09809b9610d77c4c46065dab571b8a8123aa0b5 /lib/public | |
parent | b8f2adc7c179bfb8959820bb7e0267ebb56812ed (diff) | |
parent | f3594904c2d2b4a1296ee7dcc65a0c6cefa9ab40 (diff) | |
download | nextcloud-server-48a4c67d483aee9e9a9e4b883ca085f7aa56e785.tar.gz nextcloud-server-48a4c67d483aee9e9a9e4b883ca085f7aa56e785.zip |
Merge pull request #5087 from owncloud/templatefunction-relativedate
Added dateOnly argument to relative_modified_date
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/template.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/template.php b/lib/public/template.php index 3b1a4ed4906..a5c500b0e25 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, null, $dateOnly)); } |