X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-add_sponsor.php;h=144f8c7fe6990f7afe892576289bda2c1fb4d976;hb=22f132c8d6314f76c69dff58ec0dac21f5ca3bf2;hp=df69c723aa6800890a8f9618e2cb5a581f0554f0;hpb=5071030af40e69ca4284642f44758964e18f5be8;p=mailer.git diff --git a/inc/modules/admin/what-add_sponsor.php b/inc/modules/admin/what-add_sponsor.php index df69c723aa..144f8c7fe6 100644 --- a/inc/modules/admin/what-add_sponsor.php +++ b/inc/modules/admin/what-add_sponsor.php @@ -1,7 +1,7 @@ '{--SPONSOR_REGISTRATION_FAILED--}', + 'added' => '{--SPONSOR_REGISTRATION_COMPLETED--}', + ); -if (IS_FORM_SENT()) { // Save sponsor in database - SPONSOR_HANDLE_SPONSOR(REQUEST_POST_ARRAY()); + loadTemplate('admin_settings_saved', false, doProcessSponsorFormRequest($messageArray)); } else { - // Prepare constants for the template - define('__SPONSOR_MIN_VALUE', getConfig('sponsor_min_points')); - // Output form - LOAD_TEMPLATE("admin_add_sponsor"); + loadTemplate('admin_add_sponsor'); } -// +// [EOF] ?>