]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-holiday.php
Even more fixes for broken first installation attempt (sorry all)
[mailer.git] / inc / modules / member / what-holiday.php
index edf15eec6c3a8939a7355753546f536b5894f907..88bdb0064d0d98593b034e0bf8ecd259b1986000 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 *
@@ -43,7 +43,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Add description as navigation point
-addMenuDescription('member', __FILE__);
+addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('holiday')) && (!isAdmin())) {
        loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('holiday'));
@@ -76,7 +76,7 @@ ORDER BY
 LIMIT 1", array(getMemberId()), __FILE__, __LINE__);
 
 if ((SQL_NUMROWS($result1) == 1) || (SQL_NUMROWS($result2) == 1)) {
-       // Mail order found!
+       // Mail order found
        $content = merge_array($content, SQL_FETCHARRAY($result1));
        $content = merge_array($content, SQL_FETCHARRAY($result2));
 
@@ -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
@@ -281,7 +280,8 @@ SET
        `holiday_active`='N'
 WHERE
        `userid`=%s
-LIMIT 1", array(getMemberId()), __FILE__, __LINE__);
+LIMIT 1",
+                                               array(getMemberId()), __FILE__, __LINE__);
                                        redirectToUrl('modules.php?module=login&amp;what=holiday');
                                        return;
                                }
@@ -308,7 +308,7 @@ LIMIT 1", array(getMemberId()), __FILE__, __LINE__);
                                // Output form
                                loadTemplate('member_holiday_form', false, $content);
                                break;
-               }
+               } // END - switch
        } else {
                // To fast!
                loadTemplate('admin_settings_saved', false, '{--MEMBER_HOLIDAY_LOCKED--}');