Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67107cdb authored by Alexandre Roux's avatar Alexandre Roux
Browse files

Send patch version only from 1.6

parent e0b17877
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -162,7 +162,10 @@
            $params = $this->postData['params'];
            preg_match_all('/.*(eOS) v([0-9\.]+)-?((alpha|beta|rc)(\.\d)?)?.*/', $_SERVER['HTTP_USER_AGENT'], $currentTokens);
            $shouldDisplayPatch=false;
            if(count($currentTokens[0])>0){
            if(isset($currentTokens[2]) && count($currentTokens[2])>0){
                $this->currenteOSVersion = $currentTokens[2][0];
                $versionArray = explode(".", $this->currenteOSVersion);
                if($versionArray[0] > 1 || $versionArray[0] == 1 && $versionArray[1] > 5)
                    $shouldDisplayPatch = true;
            }
            $device = isset($params['device']) ? $params['device'] : '';