From d1d904bbbd9ffdf3ba1b3018dcdb6f7e0b7de2b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= <grosse@cosmocode.de>
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 b8465a641..b6a21ff22 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 <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 $conf;
     global $ID;
@@ -58,11 +60,13 @@ function html_login(){
     $form->endFieldset();
 
     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')) {
-        $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);
-- 
GitLab