More queries and language constants rewritten
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index 5f68fbc7616f2def3e953545cfcefc5f1bac809e..ae27b8168f4450c241d1426caba25d3333b17ff6 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -49,10 +49,7 @@ $msg = null;
 require("inc/config.php");
 
 // Is the "beg" extension active?
-if (!EXT_IS_ACTIVE("beg")) {
-       // Redirect to index
-       LOAD_URL("modules.php?module=index&msg=".constant('CODE_EXTENSION_PROBLEM')."&ext=beg");
-} // END - if
+REDIRCT_ON_UNINSTALLED_EXTENSION("beg");
 
 // Is the script installed?
 if (isBooleanConstantAndTrue('mxchange_installed')) {