summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-11-30 14:04:05 +0100
committerGitHub <noreply@github.com>2021-11-30 14:04:05 +0100
commitc624c7eb5d437adea4a046fe4f66b0a700e59e3e (patch)
tree42a1a7d91e3e98c7b5b40f5ed93f2d619ee2f78d /lib/private
parentd16d4d3459c87fe56569ca820a76bf4f44c9683b (diff)
parenta3251415458e55d13695624bdebde4806dfc93de (diff)
downloadnextcloud-server-c624c7eb5d437adea4a046fe4f66b0a700e59e3e.tar.gz
nextcloud-server-c624c7eb5d437adea4a046fe4f66b0a700e59e3e.zip
Merge pull request #29966 from nextcloud/feat/remove-isIE
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/TemplateLayout.php4
-rw-r--r--lib/private/legacy/OC_Util.php13
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 1730539d6fd..6239583160b 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -1443,17 +1443,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;
- }
}