https://issues.civicrm.org/jira/browse/CRM-14199
$config = CRM_Core_Config::singleton();
$params = $this->controller->exportValues($this->_name);
- // update upload max size in $config
- // Fixme: why are we storing this php setting in $config?
- $hiddenSettings = array(
- 'maxImportFileSize' => CRM_Core_Config_Defaults::formatUnitSize(ini_get('upload_max_filesize'))
- );
- CRM_Core_BAO_ConfigSetting::create($hiddenSettings);
-
// get current logging status
$values = $this->exportValues();
}
if ($checkForPostMax) {
- $config = CRM_Core_Config::singleton();
- if($config->maxImportFileSize > $size) {
+ $maxImportFileSize = self::formatUnitSize(ini_get('upload_max_filesize'));
+ if($maxImportFileSize > $size) {
CRM_Core_Session::setStatus(ts("Note: Upload max filesize ('upload_max_filesize') should not exceed Post max size ('post_max_size') as defined in PHP.ini, please check with your system administrator."), ts("Warning"), "alert");
}
}