Fixed bug #17157: htmlArea RTE: Not enabled in various browser/system combinations
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / class.tx_rtehtmlarea_base.php
index a276718..22ac99f 100644 (file)
@@ -39,48 +39,59 @@ class tx_rtehtmlarea_base extends t3lib_rteapi {
                // Configuration of supported browsers
        var $conf_supported_browser = array (
                        'msie' => array (
-                               1 => array (
+                               array (
                                        'version' => 6.0,
-                                       'system' => 'winNT'
-                               ),
-                               2 => array (
-                                       'version' => 6.0,
-                                       'system' => 'win98'
                                ),
-                               3 => array (
-                                       'version' => 6.0,
-                                       'system' => 'win95'
-                               )
                        ),
                        'gecko' => array (
-                               1 => array (
+                               array (
                                        'version' => 1.8
-                               )
+                               ),
                        ),
                        'webkit' => array (
-                               1 => array (
+                               array (
                                        'version' => 523,
                                        'system' => 'mac'
                                ),
-                               2 => array (
+                               array (
                                        'version' => 523,
-                                       'system' => 'winNT'
+                                       'system' => 'linux'
                                ),
-                               3 => array (
+                               array (
                                        'version' => 523,
-                                       'system' => 'linux'
+                                       'system' => 'win7'
+                               ),
+                               array (
+                                       'version' => 523,
+                                       'system' => 'winVista'
                                ),
-                               4 => array (
+                               array (
+                                       'version' => 523,
+                                       'system' => 'winXP'
+                               ),
+                               array (
+                                       'version' => 523,
+                                       'system' => 'win2k'
+                               ),
+                               array (
+                                       'version' => 523,
+                                       'system' => 'winNT'
+                               ),
+                               array (
                                        'version' => 523,
                                        'system' => 'win98'
                                ),
-                               5 => array (
+                               array (
                                        'version' => 523,
                                        'system' => 'win95'
-                               )
+                               ),
+                               array (
+                                       'version' => 523,
+                                       'system' => 'chrome'
+                               ),
                        ),
                        'opera' => array (
-                               1 => array (
+                               array (
                                        'version' => 9.62
                                )
                        )
@@ -1400,15 +1411,6 @@ class tx_rtehtmlarea_base extends t3lib_rteapi {
                                }
                        }
                }
-               if ($browserInfo['system'] == 'mac') {
-                       if (strstr($userAgent,'iPad')) {
-                               $browserInfo['system'] = 'iPad';
-                       } elseif (strstr($userAgent,'iPhone')) {
-                               $browserInfo['system'] = 'iPhone';
-                       } elseif (strstr($userAgent,'iPod')) {
-                               $browserInfo['system'] = 'iPod';
-                       }
-               }
                return $browserInfo;
        }
        /***************************