diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-11-29 17:06:01 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-11-30 13:03:08 +0100 |
commit | a3251415458e55d13695624bdebde4806dfc93de (patch) | |
tree | 4c94008651e91d2e955e8a083b35fb311c59068b /lib | |
parent | 2c3cf86ad31e20504bea39bad0bf912e946e2c5e (diff) | |
download | nextcloud-server-a3251415458e55d13695624bdebde4806dfc93de.tar.gz nextcloud-server-a3251415458e55d13695624bdebde4806dfc93de.zip |
Remove isIE and associated legacy scripts
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TemplateLayout.php | 4 | ||||
-rw-r--r-- | lib/private/legacy/OC_Util.php | 13 |
2 files changed, 0 insertions, 17 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index a620b9fdac3..639e7dc007b 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -82,10 +82,6 @@ class TemplateLayout extends \OC_Template { /** @var IInitialStateService */ $this->initialState = \OC::$server->get(IInitialStateService::class); - if (\OC_Util::isIe()) { - Util::addStyle('ie'); - } - // Decide which page we show if ($renderAs === TemplateResponse::RENDER_AS_USER) { /** @var INavigationManager */ diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index 078e3cf9a03..4d614b2efea 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -1444,17 +1444,4 @@ class OC_Util { return false; } } - - /** - * is this Internet explorer ? - * - * @return boolean - */ - public static function isIe() { - if (!isset($_SERVER['HTTP_USER_AGENT'])) { - return false; - } - - return preg_match(Request::USER_AGENT_IE, $_SERVER['HTTP_USER_AGENT']) === 1; - } } |