summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/util.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-21 13:28:23 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-07-21 16:09:13 +0200
commitda0bdd1391d86046662e3e3cee046a48ffb58d22 (patch)
treedb9dc892d6bf39c20eba2760e924424cacb42312 /lib/private/legacy/util.php
parent58debbe42c16ee4ab7d36ffc91a53ae953c09021 (diff)
downloadnextcloud-server-da0bdd1391d86046662e3e3cee046a48ffb58d22.tar.gz
nextcloud-server-da0bdd1391d86046662e3e3cee046a48ffb58d22.zip
Design structure fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/legacy/util.php')
-rw-r--r--lib/private/legacy/util.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index b285eb382e7..a581397212a 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -64,6 +64,7 @@ use OCP\IConfig;
use OCP\IGroupManager;
use OCP\ILogger;
use OCP\IUser;
+use OC\AppFramework\Http\Request;
class OC_Util {
public static $scripts = array();
@@ -1528,4 +1529,13 @@ class OC_Util {
}
}
+ /**
+ * is this Internet explorer ?
+ *
+ * @return boolean
+ */
+ public static function isIe() {
+ return preg_match(Request::USER_AGENT_IE, $_SERVER['HTTP_USER_AGENT']) === 1;
+ }
+
}