Fix to rename to get_webmin_base_url and add clearer comment about the sub

This commit is contained in:
Ilia Ross 2025-06-03 02:01:07 +03:00
parent c1545a5a5e
commit b0c89fe440
No known key found for this signature in database
GPG Key ID: 121E166DD9C821AB
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -127,7 +127,7 @@ print &ui_form_end();
if ($gconfig{'forgot_pass'}) { if ($gconfig{'forgot_pass'}) {
# Show forgotten password link # Show forgotten password link
my $link = &get_webmin_login_link(); my $link = &get_webmin_base_url();
print &ui_form_start("${link}forgot_form.cgi", "post"); print &ui_form_start("${link}forgot_form.cgi", "post");
print &ui_hidden("failed", $in{'failed'}); print &ui_hidden("failed", $in{'failed'});
print &ui_form_end([ [ undef, $text{'session_forgot'} ] ]); print &ui_form_end([ [ undef, $text{'session_forgot'} ] ]);

View File

@ -13962,9 +13962,9 @@ foreach my $i (&get_all_module_infos(), &list_themes()) {
return @rv; return @rv;
} }
# get_webmin_login_link() # get_webmin_base_url()
# Returns a link to the Webmin login page # Returns a link to the Webmin login page for use from Usermin
sub get_webmin_login_link sub get_webmin_base_url
{ {
return '' if (&get_product_name() eq 'webmin'); return '' if (&get_product_name() eq 'webmin');
my $wdir = $config_directory; my $wdir = $config_directory;