summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-04 05:53:13 -0700
committerVincent Petry <pvince81@owncloud.com>2013-10-04 05:53:13 -0700
commit48a4c67d483aee9e9a9e4b883ca085f7aa56e785 (patch)
treea09809b9610d77c4c46065dab571b8a8123aa0b5 /lib/public
parentb8f2adc7c179bfb8959820bb7e0267ebb56812ed (diff)
parentf3594904c2d2b4a1296ee7dcc65a0c6cefa9ab40 (diff)
downloadnextcloud-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.php4
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));
}