$taskId = determineTaskIdBySubject($subject);
// Not installed and do we have created a task for the admin?
- if (($taskId == '0') && (!isExtensionInstalled($ext_name))) {
+ if (((is_null($taskId)) || ($taskId == '0')) && (!isExtensionInstalled($ext_name))) {
// Set default message if ext-foo is missing
$message = '{%message,ADMIN_EXTENSION_TEXT_FILE_MISSING=' . $ext_name . '%}';
$taskId = determineTaskIdBySubject($subject);
// Not installed and do we have created a task for the admin?
- if (($taskId == '0') && (isExtensionInstalled($ext_name))) {
+ if (((is_null($taskId)) || ($taskId == '0')) && (isExtensionInstalled($ext_name))) {
// Task not created so add it
$taskId = createNewTask($subject, SQL_ESCAPE(loadTemplate('task_EXTENSION_deactivated', true, $ext_name)), 'EXTENSION_DEACTIVATION');
} // END - if
$extInstalled = (isExtensionInstalled($ext_name) && (isExtensionActive($ext_name)));
// Is the extension not yet installed?
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ',extInstalled=' . intval($extInstalled));
if ($extInstalled === false) {
// We maybe want to install an extension so let's test-drive it...
- if (loadExtension($ext_name, getExtensionMode(), '0.0.0', true)) {
+ if (loadExtension($ext_name, 'test', '0.0.0', true)) {
// Create a task for newly installed extension (we ignore the task id here)
createNewExtensionTask($ext_name);
} // END - if