diff options
Diffstat (limited to 'apps/files_trashbin/list.php')
-rw-r--r-- | apps/files_trashbin/list.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_trashbin/list.php b/apps/files_trashbin/list.php index 77823617831..48ed7b694d0 100644 --- a/apps/files_trashbin/list.php +++ b/apps/files_trashbin/list.php @@ -24,8 +24,16 @@ // Check if we are a user OCP\User::checkLoggedIn(); +$config = \OC::$server->getConfig(); +$userSession = \OC::$server->getUserSession(); + +$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', true); +$isIE = \OCP\Util::isIE(); $tmpl = new OCP\Template('files_trashbin', 'index', ''); + +// gridview not available for ie +$tmpl->assign('showgridview', $showgridview && !$isIE); OCP\Util::addStyle('files_trashbin', 'trash'); OCP\Util::addScript('files_trashbin', 'app'); OCP\Util::addScript('files_trashbin', 'filelist'); |