X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_cats.php;h=770725dd1e8ad09c8259fa452adea8c5ef45ebd3;hb=98e44adab9035e30efe78181b76d78c6e13ba574;hp=dec8982086599a566620a8056f23f90736791946;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2;p=mailer.git diff --git a/inc/modules/admin/what-config_cats.php b/inc/modules/admin/what-config_cats.php index dec8982086..770725dd1e 100644 --- a/inc/modules/admin/what-config_cats.php +++ b/inc/modules/admin/what-config_cats.php @@ -69,7 +69,7 @@ if (isFormSent('add')) { SQL_FREERESULT($result); // Display message - loadTemplate('admin_settings_saved', false, $content); + displayMessage($content); } elseif ((isFormSent()) && (isPostRequestParameterSet('id')) && (is_array(postRequestParameter('id')))) { // Change or delete categories... $TEXT = ''; @@ -101,13 +101,13 @@ if (isFormSent('add')) { } // END - switch } else { // Entry not saved - $TEXT .= getMaskedMessage('ADMIN_CATEGORY_NOT_SAVED', $id); + $TEXT .= '{%message,ADMIN_CATEGORY_NOT_SAVED=' . $id . '%}'; } } // END - foreach if (isset($TEXT)) { // Display message - loadTemplate('admin_settings_saved', false, $TEXT); + displayMessage($TEXT); } // END - if } elseif ((isFormSent('delete')) && (ifPostContainsSelections())) { // Delete categories @@ -158,14 +158,14 @@ if (isFormSent('add')) { $CATS .= ''; // Load row template and switch color - $OUT .= loadTemplate('admin_config_cats_row', true, $content); + $OUT .= loadTemplate('admin_list_cats_row', true, $content); } // END - while // Free memory SQL_FREERESULT($result); // Load main template - loadTemplate('admin_config_cats', false, $OUT); + loadTemplate('admin_list_cats', false, $OUT); } // END - if // Remember in array