]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-extensions.php
More fixes for admin password hashing
[mailer.git] / inc / modules / admin / what-extensions.php
index fb0f2f2c266d9c00aefdd047c527612a9baaff14..ce97012cddc2e3df426ca24181de230648665788 100644 (file)
@@ -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);