From: Glenn H. <thr...@us...> - 2005-07-25 11:55:54
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30172 Modified Files: bug_set_sponsorship.php Log Message: fix for 0006003: Sponsoring need to be verified - also fix helper_ensure_confirmed() wasn't sending an action target URL when register_globals was off Index: bug_set_sponsorship.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bug_set_sponsorship.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- bug_set_sponsorship.php 1 May 2005 16:20:22 -0000 1.3 +++ bug_set_sponsorship.php 25 Jul 2005 11:55:36 -0000 1.4 @@ -30,6 +30,10 @@ access_ensure_bug_level( config_get( 'sponsor_threshold' ), $f_bug_id ); + helper_ensure_confirmed( + sprintf( lang_get( 'confirm_sponsorship' ), $f_bug_id, sponsorship_format_amount( $f_amount ) ), + lang_get( 'sponsor_issue' ) ); + if ( $f_amount == 0 ) { # if amount == 0, delete sponsorship by current user (if any) $t_sponsorship_id = sponsorship_get_id( $f_bug_id ); @@ -51,6 +55,5 @@ } } - $t_referrer = $_SERVER['HTTP_REFERER']; - print_header_redirect( $t_referrer ); + print_header_redirect_view( $f_bug_id ); ?> |