From 4a4cf7c5a662c652e8c1b9b8b70bbfa0876a8946 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 20 Feb 2011 19:29:16 +0000 Subject: adjusted _tpl_register() to reflect changes in the core --- tpl_functions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tpl_functions.php') diff --git a/tpl_functions.php b/tpl_functions.php index 1fc23099d..54b143fc9 100644 --- a/tpl_functions.php +++ b/tpl_functions.php @@ -64,6 +64,7 @@ function _tpl_userpage($userPage,$title,$link=0,$wrapper=0) { /** * Create link/button to register page + * DW versions > 2011-02-20 can use the core function tpl_action('register') * * @author Anika Henke */ @@ -71,15 +72,16 @@ function _tpl_register($link=0,$wrapper=0) { global $conf; global $lang; global $ID; + $lang_register = !empty($lang['btn_register']) ? $lang['btn_register'] : $lang['register']; if ($_SERVER['REMOTE_USER'] || !$conf['useacl'] || !actionOK('register')) return; if ($wrapper) echo "<$wrapper>"; if ($link) - tpl_link(wl($ID,'do=register'),$lang['register'],'class="action register" rel="nofollow"'); + tpl_link(wl($ID,'do=register'),$lang_register,'class="action register" rel="nofollow"'); else - echo html_btn('register',$ID,'',array('do'=>'register'),'get',0,$lang['register']); + echo html_btn('register',$ID,'',array('do'=>'register'),'get',0,$lang_register); if ($wrapper) echo ""; } @@ -110,6 +112,7 @@ function _tpl_action($type,$link=0,$wrapper=0) { /** * Use favicon.ico from data/media root directory if it exists, otherwise use * the one in the template's image directory. + * DW versions > 2010-11-12 can use the core function tpl_getFavicon() * * @author Anika Henke */ -- cgit v1.2.3