phpunit tests update for acl login, db io, fix smarty extended class

This commit is contained in:
Clemens Schwaighofer
2022-04-25 09:52:13 +09:00
parent 43b51895f0
commit edcdbee523
4 changed files with 67 additions and 64 deletions

View File

@@ -319,9 +319,15 @@ class SmartyExtend extends \Smarty
// if .tpl, put before .tpl
// if not .tpl, add _<$this->lang>.tpl
if (strpos($this->TEMPLATE_TRANSLATE, '.tpl')) {
$this->TEMPLATE_TRANSLATE = str_replace('.tpl', '_' . $this->lang . '.tpl', $this->TEMPLATE_TRANSLATE);
$this->TEMPLATE_TRANSLATE = str_replace(
'.tpl',
'-' . $this->lang . '.' . $this->encoding . '.tpl',
$this->TEMPLATE_TRANSLATE
);
} else {
$this->TEMPLATE_TRANSLATE .= '_' . $this->lang . '.tpl';
$this->TEMPLATE_TRANSLATE .= '_'
. $this->lang . '.' . $this->encoding
. '.tpl';
}
}
// if we can't find it, dump it