Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-05 19:27:09 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-05 19:27:09 +0300
commite0de0a122f477d1e445f4f36c85c7462c5c66eb1 (patch)
tree660c1f119d7db105b28971c44b49401ecfdfacc2 /apps/files/list.php
parent934d08b2e8b0f6f8616882b9c08d1bec4db22eb2 (diff)
Disable grid for ie
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/list.php')
-rw-r--r--apps/files/list.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/list.php b/apps/files/list.php
index f18dc5964b8..23b94d9be20 100644
--- a/apps/files/list.php
+++ b/apps/files/list.php
@@ -26,10 +26,13 @@ $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);
-$tmpl->assign('showgridview', $showgridview);
+// gridview not available for ie
+$tmpl->assign('showgridview', $showgridview && !$isIE);
+$tmpl->assign('isIE', $isIE);
$tmpl->printPage();