CRM-16373 - Config - Remove `maxImportFileSize`
authorTim Otten <totten@civicrm.org>
Mon, 17 Aug 2015 01:33:53 +0000 (18:33 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 17 Aug 2015 01:57:50 +0000 (18:57 -0700)
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
CRM/Core/Config/Variables.php

index cb498dec3f2eeaf280ce719e11d6e08a25930a86..b78b4496523e10f3f932cdcc84b3057246ba062d 100644 (file)
@@ -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);
-    }
   }
 
   /**
index 4a47a51c6c0211500b52680a24db6ee2f47b9ccb..0c5fd6da1b5290a1ef338e82304c2df68110bc5b 100644 (file)
@@ -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;
 
   /**