Some language strings fixed, renamed. Copyright notice updated
[mailer.git] / inc / modules / member / what-holiday.php
index e5869bdf8237e304b910c9dd80b3e93d23b20061..22867b557f0072f19ba732422f3a0be0455ac081 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -152,7 +152,7 @@ LIMIT 1",
                createNewTask('{--ADMIN_HOLIDAY_SUBJECT--}', $message, 'HOLIDAY_REQUEST', getMemberId());
 
                // Display message
-               loadTemplate('admin_settings_saved', false, '{--HOLIDAY_IS_ACTIVATED_NOW--}');
+               loadTemplate('admin_settings_saved', false, '{--MEMBER_HOLIDAY_IS_ACTIVATED_NOW--}');
        }
 } // END - if
 
@@ -248,8 +248,7 @@ LIMIT 1", array(getMemberId()), __FILE__, __LINE__);
        // Check for lock
        if (($content['holiday_activated'] + getConfig('holiday_lock')) < time()) {
                // User can deactivate his holiday request
-               switch ($content['holiday_active'])
-               {
+               switch ($content['holiday_active']) {
                        case 'Y': // Display deactivation form
                                // Load starting and ending date
                                $result = SQL_QUERY_ESC("SELECT
@@ -309,7 +308,7 @@ LIMIT 1",
                                // Output form
                                loadTemplate('member_holiday_form', false, $content);
                                break;
-               }
+               } // END - switch
        } else {
                // To fast!
                loadTemplate('admin_settings_saved', false, '{--MEMBER_HOLIDAY_LOCKED--}');