// ... 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("modules.php?module=admin&logout=1&sql_patches=1");
+ }
+
// Extension was found and successfully registered
LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_EXTENSION_REGISTERED);