X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_holiday.php;h=f827ab7842e12f431ad39497ed5f3b9f890838ea;hb=b8a6f8012aa3509d8e0f8fd078e044f20e80707a;hp=9a0a4a1f09c6e75a989ea496a5607a14883ace2a;hpb=7b0f17cd637e388049d2167811e4332cec1e979b;p=mailer.git diff --git a/inc/modules/admin/what-list_holiday.php b/inc/modules/admin/what-list_holiday.php index 9a0a4a1f09..f827ab7842 100644 --- a/inc/modules/admin/what-list_holiday.php +++ b/inc/modules/admin/what-list_holiday.php @@ -1,7 +1,7 @@ 0) { $content = array( 'sw' => $SW, 'id' => $content['id'], - 'uid' => generateUserProfileLink($content['userid']), - 'start' => generateDateTime($content['holiday_start'], "3"), - 'end' => generateDateTime($content['holiday_end'], "3"), + 'userid' => generateUserProfileLink($content['userid']), + 'start' => generateDateTime($content['holiday_start'], 3), + 'end' => generateDateTime($content['holiday_end'], 3), 'comments' => wordwrap($content['comments'], 15), 'status' => translateUserStatus($content['status']), - 'last' => generateDateTime($content['last_online'], "3"), + 'last_online' => generateDateTime($content['last_online'], 3), ); // Load row template and switch color - $OUT .= LOAD_TEMPLATE("admin_list_holiday_row", true, $content); + $OUT .= loadTemplate('admin_list_holiday_row', true, $content); $SW = 3 - $SW; } // Free memory SQL_FREERESULT($result); - // @TODO Rewrite this constant - define('__HOLIDAY_ROWS', $OUT); - // Load main template - LOAD_TEMPLATE("admin_list_holiday"); + loadTemplate('admin_list_holiday', false, $OUT); } else { // No holiday requests found - LOAD_TEMPLATE('admin_settings_saved', false, getMessage('HOLIDAY_ADMIN_NOTHING_FOUND')); + loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_ADMIN_NOTHING_FOUND')); } -// +// [EOF] ?>