aboutsummaryrefslogtreecommitdiffstats
path: root/apps/gallery/templates
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 /apps/gallery/templates
parent721311c9099780ecc22b6b186ed79dc5c9c92271 (diff)
downloadnextcloud-server-b1bcc60d83866627b1b28a0eda336e0f246dbe8e.tar.gz
nextcloud-server-b1bcc60d83866627b1b28a0eda336e0f246dbe8e.zip
reuse OC_L10N objects
Diffstat (limited to 'apps/gallery/templates')
-rw-r--r--apps/gallery/templates/index.php2
-rw-r--r--apps/gallery/templates/view_album.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/templates/index.php b/apps/gallery/templates/index.php
index 9bec5db1b91..cf654b68c0b 100644
--- a/apps/gallery/templates/index.php
+++ b/apps/gallery/templates/index.php
@@ -7,7 +7,7 @@ OC_Util::addStyle('files', 'files');
OC_Util::addScript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
OC_Util::addScript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
OC_Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
-$l = new OC_L10N('gallery');
+$l = OC_L10N::get('gallery');
?>
<script type="text/javascript">var gallery_scanning_root='<? echo OC_Preferences::getValue(OC_User::getUser(), 'gallery', 'root', '/'); ?>'; var gallery_default_order = '<? echo OC_Preferences::getValue(OC_User::getUser(), 'gallery', 'order', 'ASC'); ?>';</script>
<div id="controls">
diff --git a/apps/gallery/templates/view_album.php b/apps/gallery/templates/view_album.php
index 6b513a672d5..f938e487954 100644
--- a/apps/gallery/templates/view_album.php
+++ b/apps/gallery/templates/view_album.php
@@ -5,7 +5,7 @@ OC_Util::addScript('gallery', 'album_cover');
OC_Util::addScript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
OC_Util::addScript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
OC_Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
-$l = new OC_L10N('gallery');
+$l = OC_L10N::get('gallery');
?>
<script type="text/javascript">
$(document).ready(function() {