diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-06 09:06:24 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-06 11:42:18 +0100 |
commit | 5682d302c72ae42dfa16b068ad70fe312ed1ff9d (patch) | |
tree | 6ec25f56e0a085117a2fd685a55c3ed46d637cf6 /apps/files/lib | |
parent | 54a30a4b81700570303eaae03810f6ef553d66a2 (diff) | |
download | nextcloud-server-5682d302c72ae42dfa16b068ad70fe312ed1ff9d.tar.gz nextcloud-server-5682d302c72ae42dfa16b068ad70fe312ed1ff9d.zip |
Add grid toggle for every files view
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index d91d3b9db4c..3932b2b0a8e 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -257,6 +257,8 @@ class ViewController extends Controller { $params['allowShareWithLink'] = $this->config->getAppValue('core', 'shareapi_allow_links', 'yes'); $params['defaultFileSorting'] = $this->config->getUserValue($user, 'files', 'file_sorting', 'name'); $params['defaultFileSortingDirection'] = $this->config->getUserValue($user, 'files', 'file_sorting_direction', 'asc'); + $params['showgridview'] = $this->config->getUserValue($user, 'files', 'show_grid', true); + $params['isIE'] = \OCP\Util::isIE(); $showHidden = (bool) $this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', false); $params['showHiddenFiles'] = $showHidden ? 1 : 0; $params['fileNotFound'] = $fileNotFound ? 1 : 0; |