bypass smarty wherever using intltext_templates (install, register, friend confirmation emails, etc.)

This commit is contained in:
friendica 2013-01-07 20:14:00 -08:00
commit 4ab363ed71
8 changed files with 537 additions and 461 deletions

View file

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