diff options
author | Friendika <info@friendika.com> | 2011-05-10 16:12:50 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-10 16:12:50 -0700 |
commit | c052d688284fda76c612325b237d8352f2abb5d4 (patch) | |
tree | 7867f7a67b96f715644c2f4b9d1bc84a7371ebfc /mod/message.php | |
parent | 3ae36584110af2acd4a0f4805dd078da30732a1d (diff) | |
download | volse-hubzilla-c052d688284fda76c612325b237d8352f2abb5d4.tar.gz volse-hubzilla-c052d688284fda76c612325b237d8352f2abb5d4.tar.bz2 volse-hubzilla-c052d688284fda76c612325b237d8352f2abb5d4.zip |
don't use load_view_file() except in email templates and install of htconfig - to avoid getting wrong file when package is updated by copying over an older version.
Diffstat (limited to 'mod/message.php')
-rw-r--r-- | mod/message.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mod/message.php b/mod/message.php index 7f17a362b..0f5650256 100644 --- a/mod/message.php +++ b/mod/message.php @@ -120,7 +120,7 @@ function message_content(&$a) { $myprofile = $a->get_baseurl() . '/profile/' . $a->user['nickname']; - $tpl = load_view_file('view/mail_head.tpl'); + $tpl = file_get_contents('view/mail_head.tpl'); $header = replace_macros($tpl, array( '$messages' => t('Messages'), '$inbox' => t('Inbox'), @@ -164,7 +164,7 @@ function message_content(&$a) { if(($a->argc > 1) && ($a->argv[1] === 'new')) { - $tpl = load_view_file('view/msg-header.tpl'); + $tpl = file_get_contents('view/msg-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array( '$baseurl' => $a->get_baseurl(), @@ -175,7 +175,7 @@ function message_content(&$a) { $preselect = (isset($a->argv[2])?array($a->argv[2]):false); $select = contact_select('messageto','message-to-select', $preselect, 4, true); - $tpl = load_view_file('view/prv_message.tpl'); + $tpl = file_get_contents('view/prv_message.tpl'); $o .= replace_macros($tpl,array( '$header' => t('Send Private Message'), '$to' => t('To:'), @@ -225,7 +225,7 @@ function message_content(&$a) { return $o; } - $tpl = load_view_file('view/mail_list.tpl'); + $tpl = file_get_contents('view/mail_list.tpl'); foreach($r as $rr) { $o .= replace_macros($tpl, array( '$id' => $rr['id'], @@ -275,7 +275,7 @@ function message_content(&$a) { require_once("include/bbcode.php"); - $tpl = load_view_file('view/msg-header.tpl'); + $tpl = file_get_contents('view/msg-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array( '$nickname' => $a->user['nickname'], @@ -283,7 +283,7 @@ function message_content(&$a) { )); - $tpl = load_view_file('view/mail_conv.tpl'); + $tpl = file_get_contents('view/mail_conv.tpl'); foreach($messages as $message) { if($message['from-url'] == $myprofile) { $from_url = $myprofile; @@ -309,7 +309,7 @@ function message_content(&$a) { } $select = $message['name'] . '<input type="hidden" name="messageto" value="' . $contact_id . '" />'; $parent = '<input type="hidden" name="replyto" value="' . $message['parent-uri'] . '" />'; - $tpl = load_view_file('view/prv_message.tpl'); + $tpl = file_get_contents('view/prv_message.tpl'); $o .= replace_macros($tpl,array( '$header' => t('Send Reply'), '$to' => t('To:'), |