X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=xml%2FGenCode.php;h=cee7f1475a5df5da572df96fdb93fb333a6454bd;hb=52ddd94d6f2ffbdcf313a9f1005f7b5fc35469d7;hp=dc071c795aeb64cb2c9bf79c18cbbaafe5bd05f5;hpb=d4e8e64ab55a811f40e65f169ad59e66b5f2aece;p=civicrm-core.git diff --git a/xml/GenCode.php b/xml/GenCode.php index dc071c795a..cee7f1475a 100644 --- a/xml/GenCode.php +++ b/xml/GenCode.php @@ -1,4 +1,9 @@ = 0 and $memLimit < 536870912) { // 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 +// avoid php warnings if timezone is not set - CRM-10844 +date_default_timezone_set('UTC'); define('CIVICRM_UF', 'Drupal'); define('CIVICRM_UF_BASEURL', '/'); @@ -27,14 +33,23 @@ CRM_Core_ClassLoader::singleton()->register(); # TODO: pull these settings from configuration $genCode = new CRM_Core_CodeGen_Main( - '../CRM/Core/DAO/', // $CoreDAOCodePath - '../sql/', // $sqlCodePath - '../', // $phpCodePath - '../templates/', // $tplCodePath - NULL, // IGNORE - @$argv[3], // cms - empty($argv[2]) ? NULL : $argv[2], // db version - empty($argv[1]) ? 'schema/Schema.xml' : $argv[1], // schema file - getenv('CIVICRM_GENCODE_DIGEST') ? getenv('CIVICRM_GENCODE_DIGEST') : NULL // path to digest file + // $CoreDAOCodePath + '../CRM/Core/DAO/', + // $sqlCodePath + '../sql/', + // $phpCodePath + '../', + // $tplCodePath + '../templates/', + // IGNORE + NULL, + // cms + @$argv[3], + // db version + empty($argv[2]) ? NULL : $argv[2], + // schema file + empty($argv[1]) ? 'schema/Schema.xml' : $argv[1], + // path to digest file + getenv('CIVICRM_GENCODE_DIGEST') ? getenv('CIVICRM_GENCODE_DIGEST') : NULL ); $genCode->main();