summaryrefslogtreecommitdiffstats
path: root/templates/main.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-10-13 02:34:47 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-10-13 02:34:47 +0200
commitf3d86d21def0f635a2a8583debcdde5de9ea87e1 (patch)
tree1aa04a4bfbe0c666badd82ecd5075f3171ee29bf /templates/main.php
parentdfcf639f2f7b6eaf82c48dd503f7c98ce9d2155e (diff)
small cleanup and fixes
Diffstat (limited to 'templates/main.php')
-rw-r--r--templates/main.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/main.php b/templates/main.php
index ce753d317..8a618d34d 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -4,9 +4,9 @@
<?php
-$showAll = OCP\Config::getUserValue(OCP\USER::getUser(), 'news', 'showAll');
+$l = $_['trans'];
-if($showAll) {
+if($_['showAll']) {
$viewButtonImg = 'eye_all.svg';
$viewButtonTitle = $l->t('Show everything');
$viewButtonClass = 'show_all';