diff --git a/inc/html.php b/inc/html.php index 99b0c99865..ca72934f5b 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);