Merge pull request #13051 from mlutfy/customvalue-checkbox-display
[civicrm-core.git] / xml / GenCode.php
index 76e6fa6c9d15730a8257b8d90534823c36cb6575..8fef7b0d418894d40034ff3cf48aeb40500e4562 100644 (file)
@@ -1,4 +1,9 @@
 <?php
+
+if (PHP_SAPI !== 'cli') {
+  die("GenCode can only be run from command line.");
+}
+
 ini_set('include_path', '.' . PATH_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR . '..');
 // make sure the memory_limit is at least 512 MB
 $memLimitString = trim(ini_get('memory_limit'));
@@ -31,7 +36,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