]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/action-task.php
'what' files should be loaded only once
[mailer.git] / inc / modules / admin / action-task.php
index 6998ed2788246a473f57637665c4f3dc5d59b0d1..f4267c41b08335d2907710e3558a9b902a2e7e28 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -43,18 +43,13 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if (!isExtensionActive('task')) {
-       displayMessage(generateExtensionInactiveNotInstalledMessage('task'));
-       return;
-} // END - if
-
 // Load the include file
 $inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
 if (isIncludeReadable($inc)) {
        // Ok, we finally load the admin action module
-       loadInclude($inc);
+       loadIncludeOnce($inc);
 } else {
-       addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}', getWhat());
+       addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}');
 }
 
 // [EOF]