X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-extensions.php;h=ce97012cddc2e3df426ca24181de230648665788;hb=dea8e9bedeb3657454acd3f8ebb48c75dbe1bc2d;hp=fb0f2f2c266d9c00aefdd047c527612a9baaff14;hpb=0e899620c7a065952d6787c236fb2b33ae337d6a;p=mailer.git diff --git a/inc/modules/admin/what-extensions.php b/inc/modules/admin/what-extensions.php index fb0f2f2c26..ce97012cdd 100644 --- a/inc/modules/admin/what-extensions.php +++ b/inc/modules/admin/what-extensions.php @@ -304,7 +304,13 @@ case "register": // Register new extension // ... so we can finally register and load it in registration mode $status = EXTENSION_REGISTER($ext_name, $id); - if ($status) { + if ($status == true) { + // Is this sql_patches? Then we need to auto-logout! + if ($ext_name == "sql_patches") { + // Auto-logout here + LOAD_URL("admin.php?module=admin&logout=1&sql_patches=1"); + } + // Extension was found and successfully registered LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_EXTENSION_REGISTERED);