Skip to content
Snippets Groups Projects
Unverified Commit d1d904bb authored by Michael Große's avatar Michael Große
Browse files

refactor: remove deprecated method call from html_login

parent 16552868
No related branches found
No related tags found
No related merge requests found
...@@ -36,8 +36,10 @@ function html_wikilink($id,$name=null,$search=''){ ...@@ -36,8 +36,10 @@ function html_wikilink($id,$name=null,$search=''){
* The loginform * The loginform
* *
* @author Andreas Gohr <andi@splitbrain.org> * @author Andreas Gohr <andi@splitbrain.org>
*
* @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 $lang;
global $conf; global $conf;
global $ID; global $ID;
...@@ -58,11 +60,13 @@ function html_login(){ ...@@ -58,11 +60,13 @@ function html_login(){
$form->endFieldset(); $form->endFieldset();
if(actionOK('register')){ if(actionOK('register')){
$form->addElement('<p>'.$lang['reghere'].': '.tpl_actionlink('register','','','',true).'</p>'); $registerLink = (new \dokuwiki\Menu\Item\Register())->asHtmlLink('', $svg);
$form->addElement('<p>'.$lang['reghere'].': '. $registerLink .'</p>');
} }
if (actionOK('resendpwd')) { if (actionOK('resendpwd')) {
$form->addElement('<p>'.$lang['pwdforget'].': '.tpl_actionlink('resendpwd','','','',true).'</p>'); $resendPwLink = (new \dokuwiki\Menu\Item\Resendpwd())->asHtmlLink('', $svg);
$form->addElement('<p>'.$lang['pwdforget'].': '. $resendPwLink .'</p>');
} }
html_form('login', $form); html_form('login', $form);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment