Added Vivaldi browser
authorSascha Greuel <SoftCreatR@users.noreply.github.com>
Thu, 8 Oct 2015 11:21:06 +0000 (13:21 +0200)
committerSascha Greuel <SoftCreatR@users.noreply.github.com>
Thu, 8 Oct 2015 11:21:06 +0000 (13:21 +0200)
wcfsetup/install/files/lib/data/user/online/UserOnline.class.php

index 9f1a5df590456b3dadcd14e7f5f76b7f033c9c7c..e6dc2ceba202c1e909ef550b9ddb4b72337072cd 100644 (file)
@@ -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];