]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/action-coupon.php
'what' files should be loaded only once
[mailer.git] / inc / modules / member / action-coupon.php
index 645231f7e0d8e93571ec52593253f9e5409d3a39..326da6372a52d1d4a3d54f9015988e917e169073 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * Mailer v0.2.1-FINAL                                Start: 28/06/2011 *
- * ===================                          Last change: 28/06/2011 *
+ * Mailer v0.2.1-FINAL                                Start: 06/28/2011 *
+ * ===================                          Last change: 06/28/2011 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : action-coupon.php                                *
@@ -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 *
@@ -49,7 +49,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('coupon')) && (!isAdmin())) {
-       displayMessage(generateExtensionInactiveNotInstalledMessage('coupon'));
+       displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=coupon%}');
        return;
 } // END - if
 
@@ -57,9 +57,9 @@ if ((!isExtensionActive('coupon')) && (!isAdmin())) {
 $inc = sprintf("inc/modules/member/what-%s.php", getWhat());
 if (isIncludeReadable($inc)) {
        // Ok, we finally load the member action module
-       loadInclude($inc);
+       loadIncludeOnce($inc);
 } else {
-       addFatalMessage(__FILE__, __LINE__, '{--MEMBER_404_WHAT--}', getWhat());
+       addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}', getWhat());
 }
 
 // [EOF]