X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-add_sponsor.php;h=144f8c7fe6990f7afe892576289bda2c1fb4d976;hb=1d2ffc5e23e60c43ec73862ca2a3da9684c8e99b;hp=4cb26dd0bbf4de9aee11fd6195310a2e74dbd853;hpb=b47f7363125a751ecd04146fc82b11bb7b050d00;p=mailer.git diff --git a/inc/modules/admin/what-add_sponsor.php b/inc/modules/admin/what-add_sponsor.php index 4cb26dd0bb..144f8c7fe6 100644 --- a/inc/modules/admin/what-add_sponsor.php +++ b/inc/modules/admin/what-add_sponsor.php @@ -46,8 +46,14 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addMenuDescription('admin', __FILE__); if (isFormSent()) { + // Generate message array + $messageArray = array( + 'failed' => '{--SPONSOR_REGISTRATION_FAILED--}', + 'added' => '{--SPONSOR_REGISTRATION_COMPLETED--}', + ); + // Save sponsor in database - loadTemplate('admin_settings_saved', false, doProcessSponsorFormRequest()); + loadTemplate('admin_settings_saved', false, doProcessSponsorFormRequest($messageArray)); } else { // Output form loadTemplate('admin_add_sponsor');