]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions.php
Email templates added when member edits his/her URLs
[mailer.git] / inc / extensions.php
index c4d7a8e0b133555bdd20787d448e372afc3892de..18adcb0a2eaefa01c18601dfda55ea9e777f4224 100644 (file)
@@ -49,8 +49,12 @@ function EXTENSION_REGISTER ($ext_name, $id, $dry_run=false)
        // This shall never do a non-admin user!
        if (!IS_ADMIN()) return false;
 
+       // By default the language prefix is the extension's name
+       // @TODO: Do we really need this one anymore? Can't we just take $ext_name and done?
+       $EXT_LANG_PREFIX = $ext_name;
+
        // By default we have no failtures
-       $EXT_REPORTS_FAILURE = true;
+       $EXT_REPORTS_FAILURE = false;
 
        // Is this extension already installed?
        if (EXT_IS_ACTIVE($ext_name)) return false;
@@ -169,7 +173,7 @@ function EXTENSION_REGISTER ($ext_name, $id, $dry_run=false)
                $EXT_LOAD_MODE = "register";
 
                // Remains true if extension registration reports no failtures
-               $test = ($test && !$EXT_REPORTS_FAILTURE);
+               $test = ($test && !$EXT_REPORTS_FAILURE);
 
                // Does everthing before wents ok?
                if ($test) {