allow Smarty use on international templates
This commit is contained in:
parent
eb6c46a303
commit
bce29054b9
8 changed files with 43 additions and 78 deletions
|
|
@ -73,9 +73,6 @@ function install_post(&$a) {
|
|||
// connect to db
|
||||
$db = new dba($dbhost, $dbuser, $dbpass, $dbdata, true);
|
||||
|
||||
// disable smarty for this template
|
||||
$engine = $a->get_template_engine();
|
||||
$a->set_template_engine();
|
||||
$tpl = get_intltext_template('htconfig.tpl');
|
||||
$txt = replace_macros($tpl,array(
|
||||
'$dbhost' => $dbhost,
|
||||
|
|
@ -87,7 +84,6 @@ function install_post(&$a) {
|
|||
'$phpath' => $phpath,
|
||||
'$adminmail' => $adminmail
|
||||
));
|
||||
$a->set_template_engine($engine);
|
||||
|
||||
$result = file_put_contents('.htconfig.php', $txt);
|
||||
if(! $result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue