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/dfrn_request.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/dfrn_request.php') diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index a22492fe6..1458ba8e4 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -356,7 +356,7 @@ function dfrn_request_content(&$a) { $dfrn_url = notags(trim(hex2bin($_GET['dfrn_url']))); $aes_allow = (((x($_GET,'aes_allow')) && ($_GET['aes_allow'] == 1)) ? 1 : 0); $confirm_key = (x($_GET,'confirm_key') ? $_GET['confirm_key'] : ""); - $o .= file_get_contents("view/dfrn_req_confirm.tpl"); + $o .= load_view_file("view/dfrn_req_confirm.tpl"); $o = replace_macros($o,array( '$dfrn_url' => $dfrn_url, '$aes_allow' => (($aes_allow) ? '' : "" ), @@ -388,7 +388,7 @@ function dfrn_request_content(&$a) { if(count($r)) { if($r[0]['notify-flags'] & NOTIFY_INTRO) { - $email_tpl = file_get_contents('view/request_notify_eml.tpl'); + $email_tpl = load_view_file('view/request_notify_eml.tpl'); $email = replace_macros($email_tpl, array( '$requestor' => ((strlen(stripslashes($r[0]['name']))) ? stripslashes($r[0]['name']) : t('[Name Withheld]')), '$url' => stripslashes($r[0]['url']), @@ -416,7 +416,7 @@ function dfrn_request_content(&$a) { // Normal web request. Display our user's introduction form. - $o = file_get_contents("view/dfrn_request.tpl"); + $o = load_view_file("view/dfrn_request.tpl"); $o = replace_macros($o,array('$nickname' => $a->argv[1])); return $o; } -- cgit v1.2.3