Fixed bug #14662: htmlArea RTE: Should use t3lib_utility_Client::getBrowserInfo
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / extensions / Acronym / class.tx_rtehtmlarea_acronym.php
index d5ed4ae..0164b9d 100644 (file)
@@ -65,7 +65,7 @@ class tx_rtehtmlarea_acronym extends tx_rtehtmlareaapi {
        public function transformContent($content) {
 
                        // <abbr> was not supported by IE before verison 7
-               if ($this->htmlAreaRTE->client['BROWSER'] == 'msie' && $this->htmlAreaRTE->client['VERSION'] < 7) {
+               if ($this->htmlAreaRTE->client['browser'] == 'msie' && $this->htmlAreaRTE->client['version'] < 7) {
                                // change <abbr> to <acronym>
                        $content = preg_replace('/<(\/?)abbr/i', "<$1acronym", $content);
                }
@@ -97,7 +97,7 @@ class tx_rtehtmlarea_acronym extends tx_rtehtmlareaapi {
                        RTEarea['.$RTEcounter.'].buttons.'. $button .'.acronymUrl = "' . $this->htmlAreaRTE->writeTemporaryFile('', 'acronym_'.$this->htmlAreaRTE->contentLanguageUid, 'js', $this->buildJSAcronymArray($this->htmlAreaRTE->contentLanguageUid)) . '";';
 
                                // <abbr> was not supported by IE before version 7
-                       if ($this->htmlAreaRTE->client['BROWSER'] == 'msie' && $this->htmlAreaRTE->client['VERSION'] < 7) {
+                       if ($this->htmlAreaRTE->client['browser'] == 'msie' && $this->htmlAreaRTE->client['version'] < 7) {
                                $this->abbreviationIndex = 0;
                        }
                        $registerRTEinJavascriptString .= '