diff options
Diffstat (limited to 'util')
-rwxr-xr-x | util/precompile_smarty3.php | 50 |
1 files changed, 23 insertions, 27 deletions
diff --git a/util/precompile_smarty3.php b/util/precompile_smarty3.php index c977a9680..10b2eadb6 100755 --- a/util/precompile_smarty3.php +++ b/util/precompile_smarty3.php @@ -1,27 +1,23 @@ -<?php
-
-
-/**
-* @package util
-*/
-
-#require_once('boot.php');
-#require_once('include/cli_startup.php');
-require_once "library/Smarty/libs/Smarty.class.php";
-
-#cli_startup();
-
-$folders = array_merge(array('view/tpl/'),glob('view/theme/*/tpl/*',GLOB_ONLYDIR));
-
-$s = new Smarty();
-
-$s->setTemplateDir($folders);
-
-$s->setCompileDir(TEMPLATE_BUILD_PATH . '/compiled/');
-$s->setConfigDir(TEMPLATE_BUILD_PATH . '/config/');
-$s->setCacheDir(TEMPLATE_BUILD_PATH . '/cache/');
-
-$s->left_delimiter = "{{";
-$s->right_delimiter = "}}";
-
-$s->compileAllTemplates('.tpl',true);
\ No newline at end of file +<?php + +/** +* @package util +*/ + +require_once('boot.php'); +require_once('vendor/smarty/smarty/libs/Smarty.class.php'); + +$folders = array_merge(array('view/tpl/'), glob('view/theme/*/tpl/*', GLOB_ONLYDIR)); + +$s = new Smarty(); + +$s->setTemplateDir($folders); + +$s->setCompileDir(TEMPLATE_BUILD_PATH . '/compiled/'); +$s->setConfigDir(TEMPLATE_BUILD_PATH . '/config/'); +$s->setCacheDir(TEMPLATE_BUILD_PATH . '/cache/'); + +$s->left_delimiter = '{{'; +$s->right_delimiter = '}}'; + +$s->compileAllTemplates('.tpl', true); |