projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #22297 from civicrm/5.45
[civicrm-core.git]
/
tools
/
scripts
/
tpl-lint
diff --git
a/tools/scripts/tpl-lint
b/tools/scripts/tpl-lint
index 4fe5925e2cddf15871b52992260d35605f29c103..04b6f856754ea73f15e0786d7085aba632e092a3 100755
(executable)
--- a/
tools/scripts/tpl-lint
+++ b/
tools/scripts/tpl-lint
@@
-3,7
+3,7
@@
// FIXME: Make this a proper app with unit-tests
// FIXME: Make this a proper app with unit-tests
-$civi_pkgs_dir = dirname(
dirname( dirname( __FILE__ ) ) ) .
DIRECTORY_SEPARATOR . 'packages';
+$civi_pkgs_dir = dirname(
dirname(dirname(__FILE__))) .
DIRECTORY_SEPARATOR . 'packages';
require_once $civi_pkgs_dir . DIRECTORY_SEPARATOR . 'simple_html_dom.php';
exit(main($argv));
require_once $civi_pkgs_dir . DIRECTORY_SEPARATOR . 'simple_html_dom.php';
exit(main($argv));
@@
-19,7
+19,7
@@
function main($argv) {
$files = $argv;
array_shift($files); // skip program name
foreach ($files as $file) {
$files = $argv;
array_shift($files); // skip program name
foreach ($files as $file) {
- check_tpl($file, function($code, $message) use ($file) {
+ check_tpl($file, function
($code, $message) use ($file) {
printf("[%s] %s\n", $file, $message);
});
}
printf("[%s] %s\n", $file, $message);
});
}