diff options
author | Mario Vavti <mario@mariovavti.com> | 2024-11-17 16:17:05 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2024-11-17 16:17:05 +0100 |
commit | 25b089c1a930e41e0d4029aad3fde531e21717e1 (patch) | |
tree | 46740bd0d9c26df1260bd7643c703ceda6863b17 /util | |
parent | 67a9292aaa5246783b70ca3754b31924416d7f08 (diff) | |
download | volse-hubzilla-25b089c1a930e41e0d4029aad3fde531e21717e1.tar.gz volse-hubzilla-25b089c1a930e41e0d4029aad3fde531e21717e1.tar.bz2 volse-hubzilla-25b089c1a930e41e0d4029aad3fde531e21717e1.zip |
fix some errors detected by phpstan
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); |