From a69f688ccb97c9f908347538bf0fe94278c6fa41 Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Thu, 8 May 2014 12:51:37 +0200 Subject: [PATCH] Added Tapatalk 4 In order to make this work properly, detection needs to be performed before Firefox. --- .../install/files/lib/data/user/online/UserOnline.class.php | 5 +++++ 1 file changed, 5 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 c7a57e142c..f73702cf30 100644 --- a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php @@ -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]; -- 2.20.1