From d5a13b1e4c0f35445aa539ff6b3779062907a9cb Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Wed, 22 Sep 2010 18:00:19 -0700 Subject: localisation path for all view templates --- mod/message.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'mod/message.php') diff --git a/mod/message.php b/mod/message.php index 45908d233..7406ef178 100644 --- a/mod/message.php +++ b/mod/message.php @@ -92,7 +92,7 @@ function message_content(&$a) { $myprofile = $a->get_baseurl() . '/profile/' . $a->user['nickname']; - $tpl = file_get_contents('view/mail_head.tpl'); + $tpl = load_view_file('view/mail_head.tpl'); $header = replace_macros($tpl, array( '$messages' => t('Messages'), '$inbox' => t('Inbox'), @@ -146,12 +146,12 @@ function message_content(&$a) { if(($a->argc > 1) && ($a->argv[1] == 'new')) { - $tpl = file_get_contents('view/msg-header.tpl'); + $tpl = load_view_file('view/msg-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl())); $select .= contact_select('messageto','message-to-select', false, 4, true); - $tpl = file_get_contents('view/prv_message.tpl'); + $tpl = load_view_file('view/prv_message.tpl'); $o .= replace_macros($tpl,array( '$header' => t('Send Private Message'), '$to' => t('To:'), @@ -201,7 +201,7 @@ function message_content(&$a) { return $o; } - $tpl = file_get_contents('view/mail_list.tpl'); + $tpl = load_view_file('view/mail_list.tpl'); foreach($r as $rr) { $o .= replace_macros($tpl, array( '$id' => $rr['id'], @@ -250,12 +250,12 @@ function message_content(&$a) { require_once("include/bbcode.php"); - $tpl = file_get_contents('view/msg-header.tpl'); + $tpl = load_view_file('view/msg-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl())); - $tpl = file_get_contents('view/mail_conv.tpl'); + $tpl = load_view_file('view/mail_conv.tpl'); foreach($messages as $message) { $o .= replace_macros($tpl, array( '$id' => $message['id'], @@ -273,7 +273,7 @@ function message_content(&$a) { } $select = $message['name'] . ''; $parent = ''; - $tpl = file_get_contents('view/prv_message.tpl'); + $tpl = load_view_file('view/prv_message.tpl'); $o .= replace_macros($tpl,array( '$header' => t('Send Reply'), '$to' => t('To:'), -- cgit v1.2.3