summaryrefslogtreecommitdiffstats
path: root/apps/files/list.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-10-04 15:14:15 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2018-10-18 13:44:07 +0200
commitc4cce1413487f5a0e870dd2139a4c624a97981fd (patch)
tree29fbd6c36d3ca8de130f37d9ce8b6ca376347eb0 /apps/files/list.php
parent49fda8ba56860918d2e424ca07c94c08237846d4 (diff)
downloadnextcloud-server-c4cce1413487f5a0e870dd2139a4c624a97981fd.tar.gz
nextcloud-server-c4cce1413487f5a0e870dd2139a4c624a97981fd.zip
Remember toggle and events handler
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/list.php')
-rw-r--r--apps/files/list.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/list.php b/apps/files/list.php
index 93044d4c587..3b54d5ed242 100644
--- a/apps/files/list.php
+++ b/apps/files/list.php
@@ -22,11 +22,14 @@
*/
$config = \OC::$server->getConfig();
+$userSession = \OC::$server->getUserSession();
// TODO: move this to the generated config.js
$publicUploadEnabled = $config->getAppValue('core', 'shareapi_allow_public_upload', 'yes');
+$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
// renders the controls and table headers template
$tmpl = new OCP\Template('files', 'list', '');
$tmpl->assign('publicUploadEnabled', $publicUploadEnabled);
+$tmpl->assign('showgridview', $showgridview);
$tmpl->printPage();