diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-21 13:28:23 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-07-21 16:09:13 +0200 |
commit | da0bdd1391d86046662e3e3cee046a48ffb58d22 (patch) | |
tree | db9dc892d6bf39c20eba2760e924424cacb42312 /lib/private/legacy/util.php | |
parent | 58debbe42c16ee4ab7d36ffc91a53ae953c09021 (diff) | |
download | nextcloud-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.php | 10 |
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; + } + } |