I18n: fix handling non-executable smarty-gettext/tsmarty2c.php script

This commit is contained in:
Benjamin Renard 2023-02-25 05:07:00 +01:00
parent 3edf176dc2
commit a4d2e3369c

View file

@ -437,7 +437,7 @@ class I18n {
// Extract messages from templates files using tsmarty2c.php
$result = run_external_command(
array(
App :: root_directory_path()."/vendor/smarty-gettext/smarty-gettext/tsmarty2c.php",
PHP_BINARY.' '.App :: root_directory_path()."/vendor/smarty-gettext/smarty-gettext/tsmarty2c.php",
basename($templates_directory),
),
null, // Pass nothing on STDIN