summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-04-14 16:44:15 +0200
committerRobin Appelman <icewind@owncloud.com>2012-04-14 16:44:15 +0200
commitb1bcc60d83866627b1b28a0eda336e0f246dbe8e (patch)
treea7100fbd8425e90c8b90888bc16a15349519038a /lib/template.php
parent721311c9099780ecc22b6b186ed79dc5c9c92271 (diff)
downloadnextcloud-server-b1bcc60d83866627b1b28a0eda336e0f246dbe8e.tar.gz
nextcloud-server-b1bcc60d83866627b1b28a0eda336e0f246dbe8e.zip
reuse OC_L10N objects
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/template.php b/lib/template.php
index 5bcf52b9321..cb39a10df31 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -76,7 +76,7 @@ function simple_file_size($bytes) {
}
function relative_modified_date($timestamp) {
- $l=new OC_L10N('template');
+ $l=OC_L10N::get('template');
$timediff = time() - $timestamp;
$diffminutes = round($timediff/60);
$diffhours = round($diffminutes/60);
@@ -155,7 +155,7 @@ class OC_Template{
$this->renderas = $renderas;
$this->application = $app;
$this->vars = array();
- $this->l10n = new OC_L10N($app);
+ $this->l10n = OC_L10N::get($app);
$this->findTemplate($name);
}