From eac3cc50a2b7859379e23aaa7ed90e8a032f126b Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 16 Aug 2015 18:33:53 -0700 Subject: [PATCH] CRM-16373 - Config - Remove `maxImportFileSize` This variable does not appear to be used. From grepping, it seems that perhaps it was used at once point, but the major elements of it were moved to a helper function, and now that function is used multiple places. --- CRM/Core/Config/Defaults.php | 5 ----- CRM/Core/Config/Variables.php | 5 ----- 2 files changed, 10 deletions(-) diff --git a/CRM/Core/Config/Defaults.php b/CRM/Core/Config/Defaults.php index cb498dec3f..b78b449652 100644 --- a/CRM/Core/Config/Defaults.php +++ b/CRM/Core/Config/Defaults.php @@ -63,11 +63,6 @@ class CRM_Core_Config_Defaults { // add UI revamp pages //$this->revampPages = array( 'CRM/Admin/Form/Setting/Url.tpl', 'CRM/Admin/Form/Preferences/Address.tpl' ); $this->revampPages = array(); - - $size = trim(ini_get('upload_max_filesize')); - if ($size) { - $this->maxImportFileSize = self::formatUnitSize($size); - } } /** diff --git a/CRM/Core/Config/Variables.php b/CRM/Core/Config/Variables.php index 4a47a51c6c..0c5fd6da1b 100644 --- a/CRM/Core/Config/Variables.php +++ b/CRM/Core/Config/Variables.php @@ -254,11 +254,6 @@ class CRM_Core_Config_Variables extends CRM_Core_Config_Defaults { public $userFrameworkFrontend = FALSE; public $userFrameworkLogging = FALSE; - /** - * The handle for import file size - * @var int - */ - public $maxImportFileSize = 1048576; public $maxFileSize = 2; /** -- 2.25.1