Skip to content
Snippets Groups Projects
Unverified Commit 606ef46c authored by Andreas Gohr's avatar Andreas Gohr Committed by GitHub
Browse files

Merge pull request #2238 from splitbrain/removeDeprecatedMethodCalls

remove deprecated method call from html_login
parents a409094f d1d904bb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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