bypass smarty for intletext templates

This commit is contained in:
friendica
2013-01-07 20:25:38 -08:00
parent da188214c3
commit 5cb8db64cf
6 changed files with 44 additions and 0 deletions

View File

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