Fix to change links from absolute to relative

https://forum.virtualmin.com/t/cloudmin-link-install-occurs-on-primary-instead-of-linked-guest/116507
This commit is contained in:
iliajie
2022-08-15 23:02:17 +03:00
parent decd74b715
commit a8ebd50f91
2 changed files with 6 additions and 6 deletions

View File

@ -322,9 +322,9 @@ else {
push(@needs, "DBD::mysql") if ($@);
if (@needs) {
$needs = &urlize(join(" ", @needs));
print "<center><b>",&text(@needs == 2 ? 'index_nomods' : 'index_nomod', @needs,
"/cpan/download.cgi?source=3&cpan=$needs&mode=2&return=/$module_name/&returndesc=".&urlize($text{'index_return'})),
"</b></center>\n";
print "<b>".&ui_text_color(&text(@needs == 2 ? 'index_nomods' : 'index_nomod', @needs,
"../cpan/download.cgi?source=3&cpan=$needs&mode=2&return=/$module_name/&returndesc=".
&urlize($text{'index_return'})), 'warn')."</b>";
}
}
}

View File

@ -292,9 +292,9 @@ if (&foreign_available("cpan")) {
push(@needs, "DBD::Pg") if ($@);
if (@needs) {
$needs = &urlize(join(" ", @needs));
print "<center><b>",&text(@needs == 2 ? 'index_nomods' : 'index_nomod', @needs,
"/cpan/download.cgi?source=3&cpan=$needs&mode=2&return=/$module_name/&returndesc=".&urlize($text{'index_return'})),
"</b></center>\n";
print "<b>".&ui_text_color(&text(@needs == 2 ? 'index_nomods' : 'index_nomod', @needs,
"../cpan/download.cgi?source=3&cpan=$needs&mode=2&return=/$module_name/&returndesc=".
&urlize($text{'index_return'})), 'warn')."</b>";
}
}