* Rolled back browser detection in matchcondition class.
authorKasper Skårhøj <kasper@typo3.org>
Tue, 11 May 2004 08:53:58 +0000 (08:53 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Tue, 11 May 2004 08:53:58 +0000 (08:53 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@280 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_matchcondition.php

index e4dc0ed..8faa03c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-05-11  Kasper Skårhøj,,,  <kasper@typo3.com>
+
+       * Rolled back browser detection in matchcondition class.
+
 2004-05-07  Kasper Skårhøj,,,  <kasper@typo3.com>
 
        * Added "relPathprefix" to TEMPLATE cObject and also added support for relative path substitution of references in url() wrappers in <style> tags. This will also fix THAT problem reported for automaketemplate.
index c61d4c8..7c39d87 100644 (file)
@@ -411,7 +411,9 @@ class t3lib_matchCondition {
                $browserInfo['useragent']=$useragent;
                if ($useragent) {
                        // browser
-                       if(strstr($useragent,'Opera'))  {
+                       if (strstr($useragent,'MSIE'))  {
+                               $browserInfo['browser']='msie';
+                       } elseif(strstr($useragent,'Opera'))    {
                                $browserInfo['browser']='opera';
                        } elseif(strstr($useragent,'Lynx'))     {
                                $browserInfo['browser']='lynx';
@@ -427,8 +429,6 @@ class t3lib_matchCondition {
                                $browserInfo['browser']='teleport';
                        } elseif(strstr($useragent,'Mozilla'))  {
                                $browserInfo['browser']='netscape';
-                       } elseif (strstr($useragent,'MSIE'))    {
-                               $browserInfo['browser']='msie';
                        } else {
                                $browserInfo['browser']='unknown';
                        }