add Smarty templates for international templates

This commit is contained in:
Zach Prezkuta
2013-01-10 21:24:10 -07:00
parent f0a08a05ae
commit ddb2a8c23a
119 changed files with 2289 additions and 41 deletions

View File

@@ -78,9 +78,6 @@ function setup_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,
@@ -93,7 +90,6 @@ function setup_post(&$a) {
'$phpath' => $phpath,
'$adminmail' => $adminmail
));
$a->set_template_engine($engine);
$result = file_put_contents('.htconfig.php', $txt);
if(! $result) {