X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-extensions.php;h=af439d78c36529520ced37b279243b29008437b2;hp=077f255a4d8b52d44e681890eb352a9a3db2b5d4;hb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86;hpb=ca256746fe0757a23df4064824c8fe2087ad5634 diff --git a/inc/modules/admin/what-extensions.php b/inc/modules/admin/what-extensions.php index 077f255a4d..af439d78c3 100644 --- a/inc/modules/admin/what-extensions.php +++ b/inc/modules/admin/what-extensions.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -48,7 +48,7 @@ $do = 'overview'; if (isGetRequestElementSet('register_ext')) { // We are about to register a new extension - $do = 'register'; + $do = 'setup'; $taskId = determineExtensionTaskId(getRequestElement('register_ext')); // The id comes from task management and it is - of course - *not* the extension's name! @@ -335,7 +335,7 @@ ORDER BY } break; - case 'register': // Register new extension + case 'setup': // Setup new extension // Are there some tasks? $numTasks = countSumTotalData(getCurrentAdminId(), 'task_system', 'id', 'assigned_admin', TRUE, "AND `task_type`='EXTENSION'"); @@ -367,11 +367,8 @@ ORDER BY if (isExtensionActive('cache')) { // Remove cache file (will be auto-created again!) foreach (array('config', 'extension', 'filter', 'modules') as $cache) { - // Is the cache file there? - if ($GLOBALS['cache_instance']->loadCacheFile($cache)) { - // Remove cache file - $GLOBALS['cache_instance']->removeCacheFile(); - } // END - if + // Rebuild cache file + rebuildCache($cache); } // END - foreach } // END - if