From c052d688284fda76c612325b237d8352f2abb5d4 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 10 May 2011 16:12:50 -0700 Subject: 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. --- mod/register.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/register.php') diff --git a/mod/register.php b/mod/register.php index 83e9e2891..21d5a1033 100644 --- a/mod/register.php +++ b/mod/register.php @@ -435,7 +435,7 @@ function register_content(&$a) { $profile_publish_reg = ''; } else { - $publish_tpl = load_view_file("view/profile_publish.tpl"); + $publish_tpl = file_get_contents("view/profile_publish.tpl"); $profile_publish = replace_macros($publish_tpl,array( '$instance' => 'reg', '$pubdesc' => t('Include your profile in member directory?'), @@ -450,7 +450,7 @@ function register_content(&$a) { $license = t('Shared content is covered by the Creative Commons Attribution 3.0 license.'); - $o = load_view_file("view/register.tpl"); + $o = file_get_contents("view/register.tpl"); $o = replace_macros($o, array( '$oidhtml' => $oidhtml, '$realpeople' => $realpeople, -- cgit v1.2.3