X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-extensions.php;h=516143a4290d0f30210e7486eb26e2b85cc6a645;hb=2142149f3f72f1a2476f95a87937c044d63bbaf2;hp=e81f62f2496d6fe7260927dcd692c78eb4b044ce;hpb=043e340a567facef30fdff2df71d6d1c63164e72;p=mailer.git diff --git a/inc/modules/admin/what-extensions.php b/inc/modules/admin/what-extensions.php index e81f62f249..516143a429 100644 --- a/inc/modules/admin/what-extensions.php +++ b/inc/modules/admin/what-extensions.php @@ -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