Added Tapatalk 4
authorSascha Greuel <SoftCreatR@users.noreply.github.com>
Thu, 8 May 2014 10:51:37 +0000 (12:51 +0200)
committerSascha Greuel <SoftCreatR@users.noreply.github.com>
Thu, 8 May 2014 10:51:37 +0000 (12:51 +0200)
In order to make this work properly, detection needs to be performed before Firefox.

wcfsetup/install/files/lib/data/user/online/UserOnline.class.php

index c7a57e142c638cb8b1ede35c23dda2d8a19f4cde..f73702cf30563c6f3105c6ece6a5e30f4cf59392 100644 (file)
@@ -150,6 +150,11 @@ class UserOnline extends UserProfile {
                        return 'Firefox Mobile '.(isset($match[2]) ? $match[2] : $match[1]);
                }
                
+               // tapatalk 4
+               if (preg_match('~tapatalk/([\d\.]+)?~i', $this->userAgent, $match)) {
+                       return 'Tapatalk '.(isset($match[1]) ? $match[1] : 4);
+               }
+               
                // firefox
                if (preg_match('~firefox/([\d\.]+)~i', $this->userAgent, $match)) {
                        return 'Firefox '.$match[1];