]> git.mxchange.org Git - mailer.git/blobdiff - inc/daily/daily_holiday.php
Updated copyright notice as there are changes in this year
[mailer.git] / inc / daily / daily_holiday.php
index 8087a03b3e2bf84868c6c173b2cbf934ce69ea35..b35ae3e79d1ec5754d7ba30f6617c4fe965ef0ed 100644 (file)
@@ -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 *
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} elseif ((!isHtmlOutputMode()) || ((!isResetModeEnabled()) && (getConfig('holiday_mode') == 'RESET'))) {
-       // Do not execute when script is in CSS mode or no daily reset
+} elseif ((!isHtmlOutputMode()) || ((!isDailyResetEnabled()) && (getConfig('holiday_mode') == 'RESET'))) {
+       // Do not execute when script is in non-HTML mode or no daily reset
        return;
-} elseif ((!isExtensionActive('holiday')) && (isDebugModeEnabled())) {
-       logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-holiday disabled.');
+} elseif (!isExtensionActive('holiday')) {
+       if (isDebugModeEnabled()) logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-holiday disabled.');
        return;
 }