diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-16 20:58:33 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-16 20:58:33 +0200 |
commit | 9fd274c44734622b10c8ab9f203a72c53a0dda0a (patch) | |
tree | bea25df12df250280e9af8c669859730335d1d9f /apps/files/lib/Controller/ViewController.php | |
parent | fd95985a21297d6fe8e2c8234a263154923e1def (diff) | |
download | nextcloud-server-9fd274c44734622b10c8ab9f203a72c53a0dda0a.tar.gz nextcloud-server-9fd274c44734622b10c8ab9f203a72c53a0dda0a.zip |
Remove IE8 support from ViewController
* Update tests
* Fix getMock in tests
Diffstat (limited to 'apps/files/lib/Controller/ViewController.php')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index 9dbe06ff789..779a2c7aadc 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -195,18 +195,6 @@ class ViewController extends Controller { \OCP\Util::addscript('files', 'keyboardshortcuts'); \OCP\Util::addscript('files', 'navigation'); - // if IE8 and "?dir=path&view=someview" was specified, reformat the URL to use a hash like "#?dir=path&view=someview" - $isIE8 = $this->request->isUserAgent([Request::USER_AGENT_IE_8]); - if ($isIE8 && ($dir !== '' || $view !== '')) { - $dir = !empty($dir) ? $dir : '/'; - $view = !empty($view) ? $view : 'files'; - $hash = '#?dir=' . \OCP\Util::encodePath($dir); - if ($view !== 'files') { - $hash .= '&view=' . urlencode($view); - } - return new RedirectResponse($this->urlGenerator->linkToRoute('files.view.index') . $hash); - } - // mostly for the home storage's free space // FIXME: Make non static $storageInfo = $this->getStorageInfo(); |