diff options
Diffstat (limited to 'apps/files/simplelist.php')
-rw-r--r-- | apps/files/simplelist.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files/simplelist.php b/apps/files/simplelist.php index 1d61b397050..9515ec62363 100644 --- a/apps/files/simplelist.php +++ b/apps/files/simplelist.php @@ -22,8 +22,16 @@ */ // TODO: move to handlebars +$config = \OC::$server->getConfig(); +$userSession = \OC::$server->getUserSession(); + +$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', 'simplelist', ''); + +// gridview not available for ie +$tmpl->assign('showgridview', $showgridview && !$isIE); $tmpl->printPage(); |