diff options
Diffstat (limited to 'apps/files/list.php')
-rw-r--r-- | apps/files/list.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/list.php b/apps/files/list.php index 23b94d9be20..7a5159cf387 100644 --- a/apps/files/list.php +++ b/apps/files/list.php @@ -25,14 +25,15 @@ $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', true); $isIE = \OCP\Util::isIE(); // renders the controls and table headers template $tmpl = new OCP\Template('files', 'list', ''); -$tmpl->assign('publicUploadEnabled', $publicUploadEnabled); + // gridview not available for ie $tmpl->assign('showgridview', $showgridview && !$isIE); -$tmpl->assign('isIE', $isIE); +$tmpl->assign('publicUploadEnabled', $publicUploadEnabled); $tmpl->printPage(); |