aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/template.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-03 14:21:18 +0200
committerVincent Petry <pvince81@owncloud.com>2013-10-03 14:21:41 +0200
commit006799616d584fc3f83e325910368a8af0aee072 (patch)
treec031c1b6fbdcbe77371782e819803aeefef8846d /lib/public/template.php
parentb0bb64c3eebce41a35cfe6674f63f454d22f200c (diff)
downloadnextcloud-server-006799616d584fc3f83e325910368a8af0aee072.tar.gz
nextcloud-server-006799616d584fc3f83e325910368a8af0aee072.zip
Fixed missing default values
Added default value for $fromTime to prevent missing argument errors and keep backward compatible.
Diffstat (limited to 'lib/public/template.php')
-rw-r--r--lib/public/template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/template.php b/lib/public/template.php
index 6349501272f..8800f5c856e 100644
--- a/lib/public/template.php
+++ b/lib/public/template.php
@@ -90,7 +90,7 @@ function human_file_size( $bytes ) {
* @param $timestamp unix timestamp
* @returns human readable interpretation of the timestamp
*/
-function relative_modified_date($timestamp, $fromTime, $dateOnly = false) {
+function relative_modified_date($timestamp, $fromTime = null, $dateOnly = false) {
return(\relative_modified_date($timestamp, $fromTime, $dateOnly));
}