Skip to content

Commit

Permalink
Use return link everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed May 7, 2011
1 parent b2e66ad commit 6a72bb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 6 additions & 3 deletions cpan/download.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ elsif ($in{'source'} == 3) {
print "</ul>\n";
$i++;
}
&ui_print_footer("", $text{'index_return'});
&ui_print_footer($in{'return'},
$in{'returndesc'} || $text{'index_return'});
exit;
}

Expand Down Expand Up @@ -357,12 +358,14 @@ print &ui_form_end([ [ undef, $text{'download_cont'} ],
( [ "need", $text{'download_need'} ] ) : ( )
]);

&ui_print_footer("", $text{'index_return'});
&ui_print_footer($in{'return'},
$in{'returndesc'} || $text{'index_return'});

sub install_error
{
print "<br><b>$main::whatfailed : $_[0]</b> <p>\n";
&ui_print_footer("", $text{'index_return'});
&ui_print_footer($in{'return'},
$in{'returndesc'} || $text{'index_return'});
exit;
}

7 changes: 1 addition & 6 deletions cpan/install.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,7 @@ sub clean_up
{
system("rm -rf $mod_dir") if ($mod_dir && -d $mod_dir);
unlink(@pfile) if ($in{'need_unlink'} && (!$config{'save_partial'} || $_[0]));
if ($in{'return'}) {
&ui_print_footer($in{'return'}, $in{'returndesc'});
}
else {
&ui_print_footer("", $text{'index_return'});
}
&ui_print_footer($in{'return'}, $in{'returndesc'} || $text{'index_return'});
}

# show_output(desc, dir, command)
Expand Down

0 comments on commit 6a72bb9

Please sign in to comment.