-// Is the script installed?
-if (isInstalled()) {
- // Is the admin logged-in and no sql_patches installed?
- if ((IS_ADMIN()) && (!EXT_IS_ACTIVE('sql_patches'))) {
- // Extension 'sql_patches' is missing!
- LOAD_URL('modules.php?module=admin&sql_patches=1');
- } else {
- // Default redirect
- LOAD_URL('modules.php?module=admin');
- }
+// Is the admin logged-in and no sql_patches installed?
+if ((isAdmin()) && (!isExtensionActive('sql_patches'))) {
+ // Extension 'sql_patches' is missing!
+ redirectToUrl('modules.php?module=admin&sql_patches=1');