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/contacts.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/contacts.php')
-rw-r--r-- | mod/contacts.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/contacts.php b/mod/contacts.php index c22bc3c83..df75ab2dd 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -14,7 +14,7 @@ function contacts_init(&$a) { if(strlen(get_config('system','directory_submit_url'))) $a->page['aside'] .= '<div class="side-link" id="side-match-link"><a href="match" >' . t('Find People With Shared Interests') . '</a></div>'; - $tpl = load_view_file('view/follow.tpl'); + $tpl = file_get_contents('view/follow.tpl'); $a->page['aside'] .= replace_macros($tpl,array( '$label' => t('Connect/Follow'), '$hint' => t('Example: bob@example.com, http://example.com/barbara'), @@ -168,7 +168,7 @@ function contacts_content(&$a) { // create an unfollow slap if($orig_record[0]['network'] === 'stat') { - $tpl = load_view_file('view/follow_slap.tpl'); + $tpl = file_get_contents('view/follow_slap.tpl'); $slap = replace_macros($tpl, array( '$name' => $a->user['username'], '$profile_page' => $a->get_baseurl() . '/profile/' . $a->user['nickname'], @@ -215,12 +215,12 @@ function contacts_content(&$a) { return; } - $tpl = load_view_file('view/contact_head.tpl'); + $tpl = file_get_contents('view/contact_head.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl())); require_once('include/contact_selectors.php'); - $tpl = load_view_file("view/contact_edit.tpl"); + $tpl = file_get_contents("view/contact_edit.tpl"); switch($r[0]['rel']) { case REL_BUD: @@ -317,7 +317,7 @@ function contacts_content(&$a) { $search = ((x($_GET,'search')) ? notags(trim($_GET['search'])) : ''); - $tpl = load_view_file("view/contacts-top.tpl"); + $tpl = file_get_contents("view/contacts-top.tpl"); $o .= replace_macros($tpl,array( '$header' => t('Contacts'), '$hide_url' => ((strlen($sql_extra)) ? 'contacts/all' : 'contacts' ), @@ -351,7 +351,7 @@ function contacts_content(&$a) { if(count($r)) { - $tpl = load_view_file("view/contact_template.tpl"); + $tpl = file_get_contents("view/contact_template.tpl"); foreach($r as $rr) { if($rr['self']) |