Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/kernel/kbase.php
Show First 20 Lines • Show All 523 Lines • ▼ Show 20 Line(s) | |||||
$this->formConfig = $config->getFormByName('default', Array ()); | $this->formConfig = $config->getFormByName('default', Array ()); | ||||
if ( !$this->formName ) { | if ( !$this->formName ) { | ||||
return ; | return ; | ||||
} | } | ||||
$form_data = $config->getFormByName($this->formName); | $form_data = $config->getFormByName($this->formName); | ||||
if ( !$form_data ) { | if ( $form_data === false ) { | ||||
trigger_error('Form "<strong>' . $this->formName . '</strong>" isn\'t declared in "<strong>' . $this->Prefix . '</strong>" unit config.', E_USER_NOTICE); | trigger_error('Form "<strong>' . $this->formName . '</strong>" isn\'t declared in "<strong>' . $this->Prefix . '</strong>" unit config.', E_USER_NOTICE); | ||||
} | } | ||||
else { | else { | ||||
$this->formConfig = kUtil::array_merge_recursive($this->formConfig, $form_data); | $this->formConfig = kUtil::array_merge_recursive($this->formConfig, $form_data); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 653 Lines • Show Last 20 Lines |