From: Sascha Greuel Date: Thu, 8 Oct 2015 11:21:06 +0000 (+0200) Subject: Added Vivaldi browser X-Git-Tag: 2.1.8~27^2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7277dfd4a4c4ff9208c0dd66191ff26f3feb7d0;p=GitHub%2FWoltLab%2FWCF.git Added Vivaldi browser --- 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];