From f7277dfd4a4c4ff9208c0dd66191ff26f3feb7d0 Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Thu, 8 Oct 2015 13:21:06 +0200 Subject: [PATCH] Added Vivaldi browser --- .../install/files/lib/data/user/online/UserOnline.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php index 9f1a5df590..e6dc2ceba2 100644 --- a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php @@ -175,10 +175,16 @@ class UserOnline extends UserProfile { return 'Internet Explorer '.(isset($match[2]) ? $match[2] : $match[1]); } + // edge if (preg_match('~edge/(\d{2}\.\d+)~i', $this->userAgent, $match)) { return 'Microsoft Edge '.$match[1]; } + // vivaldi + if (preg_match('~vivaldi/([\d\.]+)~i', $this->userAgent, $match)) { + return 'Vivaldi '.$match[1]; + } + // iron if (preg_match('~iron/([\d\.]+)~i', $this->userAgent, $match)) { return 'Iron '.$match[1]; -- 2.20.1