[BUGFIX] htmlArea RTE: TV CE editing not possible
authorstan <typo3@sjbr.ca>
Sat, 9 Jul 2011 03:10:26 +0000 (23:10 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Sat, 9 Jul 2011 03:18:07 +0000 (05:18 +0200)
TV CE editing not possible as class.tx_staticinfotables_div.php is required by htmlArea RTE but apparently does not exist, despite the fact that extension Static Info Tables is loaded. No idea how to reproduce such an error.

Change-Id: I4caa2069a1debf3f6bb47d07390ea9ea616dd8b9
Fixes: #27819
Releases: 4.5, 4.6
Reviewed-on: http://review.typo3.org/3165
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/extensions/Language/class.tx_rtehtmlarea_language.php

index 05743a6..f84b382 100644 (file)
@@ -49,10 +49,10 @@ class tx_rtehtmlarea_language extends tx_rtehtmlarea_api {
                );
 
        public function main($parentObject) {
-               if (!t3lib_extMgm::isLoaded('static_info_tables')) {
-                       $this->pluginButtons = t3lib_div::rmFromList('language', $this->pluginButtons);
+               if (t3lib_extMgm::isLoaded('static_info_tables') && file_exists(t3lib_extMgm::extPath('static_info_tables') . 'class.tx_staticinfotables_div.php')) {
+                       require_once(t3lib_extMgm::extPath('static_info_tables') . 'class.tx_staticinfotables_div.php');
                } else {
-                       require_once(t3lib_extMgm::extPath('static_info_tables').'class.tx_staticinfotables_div.php');
+                       $this->pluginButtons = t3lib_div::rmFromList('language', $this->pluginButtons);
                }
                return parent::main($parentObject);
        }