1
0
Fork 0

localisation path for all view templates

This commit is contained in:
Mike Macgirvin 2010-09-22 18:00:19 -07:00
commit d5a13b1e4c
28 changed files with 113 additions and 100 deletions

View file

@ -175,7 +175,7 @@ function item_post(&$a) {
if(($user['notify-flags'] & NOTIFY_COMMENT) && ($contact_record != $author)) {
require_once('bbcode.php');
$from = $author['name'];
$tpl = file_get_contents('view/cmnt_received_eml.tpl');
$tpl = load_view_file('view/cmnt_received_eml.tpl');
$email_tpl = replace_macros($tpl, array(
'$sitename' => $a->config['sitename'],
'$siteurl' => $a->get_baseurl(),
@ -195,7 +195,7 @@ function item_post(&$a) {
if(($user['notify-flags'] & NOTIFY_WALL) && ($contact_record != $author)) {
require_once('bbcode.php');
$from = $author['name'];
$tpl = file_get_contents('view/wall_received_eml.tpl');
$tpl = load_view_file('view/wall_received_eml.tpl');
$email_tpl = replace_macros($tpl, array(
'$sitename' => $a->config['sitename'],
'$siteurl' => $a->get_baseurl(),