summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-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';