-// Is the script installed?
-if (isBooleanConstantAndTrue('mxchange_installed')) {
- // Simply redirect... :-)
- LOAD_URL("modules.php?module=admin");
+// Is the admin logged-in and no ext-sql_patches installed?
+if ((isAdmin()) && (!isExtensionActive('sql_patches'))) {
+ // Extension 'sql_patches' is missing!
+ redirectToUrl('modules.php?module=admin&sql_patches=1');