diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-05 11:19:46 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-05 11:19:46 +0200 |
commit | faf6c0e8e10347e16799699eab401060e28d7531 (patch) | |
tree | 347c81b91e6ab7929ce15187934c70581a2c7463 /lib/template.php | |
parent | 6d5cb13018197355978230a5b59790fa31ccc6fd (diff) | |
download | nextcloud-server-faf6c0e8e10347e16799699eab401060e28d7531.tar.gz nextcloud-server-faf6c0e8e10347e16799699eab401060e28d7531.zip |
fix some forgotten quotes around strings
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/template.php b/lib/template.php index 45008940e99..7f8bd5c2710 100644 --- a/lib/template.php +++ b/lib/template.php @@ -88,11 +88,11 @@ function relative_modified_date($timestamp) { else if($timediff < 3600) { return $diffminutes.' minutes ago'; } //else if($timediff < 7200) { return '1 hour ago'; } //else if($timediff < 86400) { return $diffhours.' hours ago'; } - else if((date(G)-$diffhours) > 0) { return 'today'; } - else if((date(G)-$diffhours) > -24) { return 'yesterday'; } + else if((date('G')-$diffhours) > 0) { return 'today'; } + else if((date('G')-$diffhours) > -24) { return 'yesterday'; } else if($timediff < 2678400) { return $diffdays.' days ago'; } else if($timediff < 5184000) { return 'last month'; } - else if((date(n)-$diffmonths) > 0) { return 'months ago'; } + else if((date('n')-$diffmonths) > 0) { return 'months ago'; } else if($timediff < 63113852) { return 'last year'; } else { return 'years ago'; } } |