X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-extensions.php;h=b57379a82938e34c0ae1f88b049cf928826dd8c1;hb=0ee25da287821512e09137a752465f09b6e1a799;hp=41f88a439a17deea70d1a12dab6f834b592f794e;hpb=5deec33be1baf2135eefc2bbb0d1b63c6cbd2f9a;p=mailer.git diff --git a/inc/modules/admin/what-extensions.php b/inc/modules/admin/what-extensions.php index 41f88a439a..b57379a829 100644 --- a/inc/modules/admin/what-extensions.php +++ b/inc/modules/admin/what-extensions.php @@ -43,7 +43,7 @@ ADD_DESCR("admin", __FILE__); // Normally we want the overview of all registered extensions $do = "overview"; $SEL = 0; -if (REQUEST_ISSET_POST(('sel'))) $SEL = SELECTION_COUNT(REQUEST_POST('sel')); +if (REQUEST_ISSET_POST('sel')) $SEL = SELECTION_COUNT(REQUEST_POST('sel')); if (REQUEST_ISSET_GET(('reg_ext'))) { // We are about to register a new extension @@ -66,7 +66,7 @@ if (REQUEST_ISSET_GET(('reg_ext'))) { EXTENSION_RUN_SQLS($ext_id, $EXT_LOAD_MODE); } } -} elseif (((REQUEST_ISSET_POST(('edit'))) || (REQUEST_ISSET_POST(('modify')))) && ($SEL > 0) && (!IS_DEMO())) { +} elseif (((REQUEST_ISSET_POST('edit')) || (REQUEST_ISSET_POST(('modify')))) && ($SEL > 0) && (!IS_DEMO())) { // Change settings like CSS file load if (REQUEST_ISSET_POST(('modify'))) { // Change entries @@ -77,6 +77,9 @@ if (REQUEST_ISSET_GET(('reg_ext'))) { // Change this extension? if ($sel == 1) { + // Load mode is modify + $EXT_LOAD_MODE = "modify"; + // Update extension's record $active = REQUEST_POST('active', $ext_id); if (GET_EXT_VERSION("sql_patches") >= "0.0.6") { @@ -299,8 +302,7 @@ case "register": // Register new extension // Is the extension deprecated? if (EXT_GET_DEPRECATED() == "N") { // ... so we can finally register and load it in registration mode - $status = EXTENSION_REGISTER($ext_name, $ext_id); - if ($status == true) { + if (EXTENSION_REGISTER($ext_name, $ext_id)) { // Extension was found and successfully registered LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_EXTENSION_REGISTERED')); @@ -329,7 +331,7 @@ case "register": // Register new extension LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_REG_FAILED_ALREADY')); } else { // Notify the admin that we have a problem here... - LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_REG_FAILED_404')); + LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_REG_FAILED_404'), $ext_name)); } } else { // Motify the admin that we have a problem here...