]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_holiday.php
Several more constants rewritten to getConfig()
[mailer.git] / inc / modules / admin / what-list_holiday.php
index c5e3d8a4ec676fb0c2ed949e3394e9e862243e7e..0dc684b1498ee2a040bf33bddbefc142a7e6ae15 100644 (file)
@@ -38,7 +38,7 @@
 
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
@@ -57,18 +57,18 @@ if (SQL_NUMROWS($result) > 0) {
        $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
                // Add three dashes to comment when it is empty
-               if (empty($content['comments'])) $content['comments'] = "---";
+               if (empty($content['comments'])) $content['comments'] = '---';
 
                // Prepare data for the row template
                $content = array(
                        'sw'       => $SW,
                        'id'       => $content['id'],
-                       'uid'      => ADMIN_USER_PROFILE_LINK($content['userid']),
-                       'start'    => MAKE_DATETIME($content['holiday_start'], "3"),
-                       'end'      => MAKE_DATETIME($content['holiday_end'], "3"),
+                       'uid'      => generateUserProfileLink($content['userid']),
+                       'start'    => generateDateTime($content['holiday_start'], '3'),
+                       'end'      => generateDateTime($content['holiday_end'], '3'),
                        'comments' => wordwrap($content['comments'], 15),
-                       'status'   => TRANSLATE_STATUS($content['status']),
-                       'last'     => MAKE_DATETIME($content['last_online'], "3"),
+                       'status'   => translateUserStatus($content['status']),
+                       'last'     => generateDateTime($content['last_online'], '3'),
                );
 
                // Load row template and switch color