]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16015 - detect iceweasel as firefox
authormjollnir_ <mjollnir_>
Tue, 12 Aug 2008 17:23:38 +0000 (17:23 +0000)
committermjollnir_ <mjollnir_>
Tue, 12 Aug 2008 17:23:38 +0000 (17:23 +0000)
lib/moodlelib.php

index 4c1d608bbd5def521005aafa7763dfb54e8f9462..4402944d00c82ec5c4197e5904309a7442e66621 100644 (file)
@@ -6187,8 +6187,8 @@ function check_php_version($version='5.2.4') {
 
       case 'Firefox':   /// Mozilla Firefox browsers
 
-          if (preg_match("/Firefox\/([0-9\.]+)/i", $agent, $match)) {
-              if (version_compare($match[1], $version) >= 0) {
+          if (preg_match("/(Iceweasel|Firefox)\/([0-9\.]+)/i", $agent, $match)) {
+              if (version_compare($match[2], $version) >= 0) {
                   return true;
               }
           }