Grok gave me the answer:)
<?php function smarty_function_xl($params, &$smarty): void { if (empty($params['t'])) { trigger_error("xl: missing 't' parameter", E_USER_WARNING); return; } else { $translate = $params['t']; } echo xl($translate); }
Create /var/www/html/openemr/library/smarty/plugins/function.xl.php with:
and then i had:
“Failed to create /var/www/html/openemr/sites/default/documents/”
So:
sudo chown -R www-data:www-data /var/www/html/openemr/sites/default/documents
sudo chmod -R 755 /var/www/html/openemr/sites/default/documentssudo chmod -R 775 /var/www/html/openemr/sites/default/documents
Thank you