]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-extensions.php
More calls of DEBUG_LOG() added
[mailer.git] / inc / modules / admin / what-extensions.php
index e81f62f2496d6fe7260927dcd692c78eb4b044ce..516143a4290d0f30210e7486eb26e2b85cc6a645 100644 (file)
@@ -38,7 +38,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
 global $cacheInstance, $cacheArray, $cacheMode;
 
@@ -164,17 +164,18 @@ if (!empty($_GET['reg_ext'])) {
                $ext_name = GET_EXT_NAME($id);
                $ext_ver = GET_EXT_VERSION($ext_name);
 
-               // Free the result
-               SQL_FREERESULT($result);
-
                if ($_CONFIG['verbose_sql']) {
                        // Load SQL commands in remove mode
                        $EXT_LOAD_MODE = "remove";
+                       $EXT_ALWAYS_ACTIVE = "N";
                        $file = sprintf("%sinc/extensions/ext-%s.php", PATH, $ext_name);
-                       include($file);
+                       if (FILE_READABLE($file)) {
+                               // Load file
+                               include($file);
 
-                       // Generate extra table with loaded SQL commands
-                       $VERBOSE_OUT = EXTENSION_VERBOSE_TABLE($SQLs);
+                               // Generate extra table with loaded SQL commands
+                               $VERBOSE_OUT = EXTENSION_VERBOSE_TABLE($SQLs);
+                       }
                } // END - if
 
                // Prepare data for the row template