2008-02-08 Jeff Segars <jeff@webempoweredchurch.org>
* Fixed bug #7449: Frontend editing fails due to undefined method in t3lib_BEfunc
+
+2008-02-07 Stanislas Rolland <stanislas.rolland@fructifor.ca>
+
+ * Fixed bug #4588: Frontend htmlArea RTE loads global RTE config instead of function parameter $thisConfig
2008-02-07 Benjamin Mack <mack@xnos.org>
+2008-02-07 Stanislas Rolland <stanislas.rolland@fructifor.ca>
+
+ * Fixed bug #4588: Frontend htmlArea RTE loads global RTE config instead of function parameter $thisConfig
+
2008-02-06 Stanislas Rolland <stanislas.rolland@fructifor.ca>
* Fixed bug #7419: htmlArea RTE: Localization error in Remove Format plugin
var $tscPID;
var $typeVal;
var $thePid;
- var $RTEsetup;
- var $thisConfig;
+ var $RTEsetup = array();
+ var $thisConfig = array();
var $confValues;
var $language;
var $specConf;
// Record "type" field value:
$this->typeVal = $RTEtypeVal; // TCA "type" value for record
- unset($this->RTEsetup);
+
+ // RTE configuration
$pageTSConfig = $TSFE->getPagesTSconfig();
- $this->RTEsetup = $pageTSConfig['RTE.'];
- $this->thisConfig = $this->RTEsetup['default.'];
- $this->thisConfig = $this->thisConfig['FE.'];
+ if (is_array($pageTSConfig) && is_array($pageTSConfig['RTE.'])) {
+ $this->RTEsetup = $pageTSConfig['RTE.'];
+ }
+
+ if (is_array($thisConfig) && !empty($thisConfig)) {
+ $this->thisConfig = $thisConfig;
+ } else if (is_array($this->RTEsetup['default.']) && is_array($this->RTEsetup['default.']['FE.'])) {
+ $this->thisConfig = $this->RTEsetup['default.']['FE.'];
+ }
// Special configuration (line) and default extras:
$this->specConf = $specConf;