X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Foverview-inc.php;h=e5531730928a113b15f0f835869ad88d119f333a;hp=4675398ce0491babca50a2e7ab2d7c3a3c513fcc;hb=8a7b405ec86c2f0670435547acb497b9583d481c;hpb=e1d636846bafc8ae71855595a2a2843463025e26 diff --git a/inc/modules/admin/overview-inc.php b/inc/modules/admin/overview-inc.php index 4675398ce0..e553173092 100644 --- a/inc/modules/admin/overview-inc.php +++ b/inc/modules/admin/overview-inc.php @@ -45,18 +45,20 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { function OUTPUT_STANDARD_OVERVIEW (&$result_tasks) { // First check for solved and not assigned tasks and assign them to current admin SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_task_system` SET `assigned_admin`=%s WHERE assigned_admin < 1 AND status != 'NEW'", - array(getCurrentAdminId()), __FILE__, __LINE__); + array(getCurrentAdminId()), __FILE__, __LINE__); // We currently don't want to install an extension so let's find out if we need... $EXT_LOAD_MODE = 'register'; $jobsDone = true; // Open the extension directory - $extensionList = getArrayFromDirectory("inc/extensions/", "ext-", false, false); + $extensionList = getArrayFromDirectory('inc/extensions/', 'ext-', false, false); foreach ($extensionList as $file) { + // Only file name is required... :( + $file = basename($file); + // Is this file an extension? - if ((substr($file, 0, 4) == "ext-") && (substr($file, -4) == '.php')) { - //* DEBUG: */ echo $file."
\n"; + if ((substr($file, 0, 4) == 'ext-') && (substr($file, -4) == '.php')) { // Possible newly installed extension found so we extract extension's name $ext_name = strtolower(substr($file, 4, -4)); // Keep always extension names on lower case!!! @@ -65,6 +67,7 @@ function OUTPUT_STANDARD_OVERVIEW (&$result_tasks) { // Check if extension is installed or not $ext_ver = GET_EXT_VERSION($ext_name); + //* DEBUG: */ echo $ext_name."=".$ext_ver."
\n"; // Is the extension not yet installed? if (empty($ext_ver)) {