Project

General

Profile

Feature #22045 ยป 22045-47.patch

Ivan Dharma Kartolo, 2012-09-02 11:46

View differences:

typo3/sysext/cms/tslib/class.tslib_pibase.php (revision )
*/
function pi_setPiVarDefaults() {
if (is_array($this->conf['_DEFAULT_PI_VARS.'])) {
foreach($this->conf['_DEFAULT_PI_VARS.'] as $GPkey => $GPval) {
if (strpos($GPkey,'.')) {
$GPkey = substr($GPkey,0,-1);
}
if (is_array($this->conf['_DEFAULT_PI_VARS.'][$GPkey.'.']['stdWrap.'])) {
$GPval = $GPval ? $GPval : '';
$this->conf['_DEFAULT_PI_VARS.'][$GPkey] = $this->cObj->stdWrap($GPval, $this->conf['_DEFAULT_PI_VARS.'][$GPkey.'.']['stdWrap.']);
unset($this->conf['_DEFAULT_PI_VARS.'][$GPkey.'.']['stdWrap.']);
}
}
$this->piVars = t3lib_div::array_merge_recursive_overrule($this->conf['_DEFAULT_PI_VARS.'],is_array($this->piVars)?$this->piVars:array());
}
}
    (1-1/1)