CRM-12167: Start Implementation of Visibility per Price Option
[civicrm-core.git] / xml / GenCode.php
index fe8fa0657670e9e8450c14b7d9a1ea3e5b75a561..dc071c795aeb64cb2c9bf79c18cbbaafe5bd05f5 100644 (file)
@@ -14,7 +14,8 @@ switch ($memLimitUnit) {
 }
 
 if ($memLimit >= 0 and $memLimit < 536870912) {
-  ini_set('memory_limit', '512M');
+  // Note: When processing all locales, CRM_Core_I18n::singleton() eats a lot of RAM.
+  ini_set('memory_limit', -1);
 }
 date_default_timezone_set('UTC'); // avoid php warnings if timezone is not set - CRM-10844
 
@@ -30,7 +31,7 @@ $genCode = new CRM_Core_CodeGen_Main(
   '../sql/', // $sqlCodePath
   '../', // $phpCodePath
   '../templates/', // $tplCodePath
-  array('../packages/Smarty/plugins', '../CRM/Core/Smarty/plugins'), // smarty plugin dirs
+  NULL, // IGNORE
   @$argv[3], // cms
   empty($argv[2]) ? NULL : $argv[2], // db version
   empty($argv[1]) ? 'schema/Schema.xml' : $argv[1], // schema file