From d1d904bbbd9ffdf3ba1b3018dcdb6f7e0b7de2b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Fri, 19 Jan 2018 18:16:40 +0100 Subject: [PATCH] refactor: remove deprecated method call from html_login --- inc/html.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/inc/html.php b/inc/html.php index b8465a6419..b6a21ff22e 100644 --- a/inc/html.php +++ b/inc/html.php @@ -36,8 +36,10 @@ function html_wikilink($id,$name=null,$search=''){ * The loginform * * @author Andreas Gohr + * + * @param bool $svg Whether to show svg icons in the register and resendpwd links or not */ -function html_login(){ +function html_login($svg = false){ global $lang; global $conf; global $ID; @@ -58,11 +60,13 @@ function html_login(){ $form->endFieldset(); if(actionOK('register')){ - $form->addElement('

'.$lang['reghere'].': '.tpl_actionlink('register','','','',true).'

'); + $registerLink = (new \dokuwiki\Menu\Item\Register())->asHtmlLink('', $svg); + $form->addElement('

'.$lang['reghere'].': '. $registerLink .'

'); } if (actionOK('resendpwd')) { - $form->addElement('

'.$lang['pwdforget'].': '.tpl_actionlink('resendpwd','','','',true).'

'); + $resendPwLink = (new \dokuwiki\Menu\Item\Resendpwd())->asHtmlLink('', $svg); + $form->addElement('

'.$lang['pwdforget'].': '. $resendPwLink .'

'); } html_form('login', $form);