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/register.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/register.php') diff --git a/mod/register.php b/mod/register.php index 451cb1246..e65ba7c9b 100644 --- a/mod/register.php +++ b/mod/register.php @@ -169,7 +169,7 @@ function register_post(&$a) { } if( $a->config['register_policy'] == REGISTER_OPEN ) { - $email_tpl = file_get_contents("view/register_open_eml.tpl"); + $email_tpl = load_view_file("view/register_open_eml.tpl"); $email_tpl = replace_macros($email_tpl, array( '$sitename' => $a->config['sitename'], '$siteurl' => $a->get_baseurl(), @@ -204,7 +204,7 @@ function register_post(&$a) { dbesc($new_password) ); - $email_tpl = file_get_contents("view/register_verify_eml.tpl"); + $email_tpl = load_view_file("view/register_verify_eml.tpl"); $email_tpl = replace_macros($email_tpl, array( '$sitename' => $a->config['sitename'], '$siteurl' => $a->get_baseurl(), @@ -241,7 +241,7 @@ function register_content(&$a) { return; } - $o = file_get_contents("view/register.tpl"); + $o = load_view_file("view/register.tpl"); $o = replace_macros($o, array( '$registertext' =>((x($a->config,'register_text')) ? '
' . $a->config['register_text'] . '
' -- cgit v1.2.3