Skip to content

Commit bc7f34d

Browse files
author
Joshua Parker
committed
Merge branch 'develop'
2 parents 318b87f + 40db7e0 commit bc7f34d

File tree

9 files changed

+3927
-1309
lines changed

9 files changed

+3927
-1309
lines changed

RELEASE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.3.1
1+
6.3.2

app/functions/db-function.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ function web_reg_check()
267267
$options->meta_value = 1;
268268
$options->where('meta_key = "open_registration"')
269269
->update();
270+
271+
etsis_cache_flush_namespace('option');
270272
}
271273
}
272274

@@ -276,6 +278,8 @@ function web_reg_check()
276278
$options->meta_value = 0;
277279
$options->where('meta_key = "open_registration"')
278280
->update();
281+
282+
etsis_cache_flush_namespace('option');
279283
}
280284
}
281285
} catch (NotFoundException $e) {

app/functions/hook-function.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ function dashboard_course_count()
837837
$count = $app->db->course()
838838
->where('course.currStatus = "A"')->_and_()
839839
->where('course.endDate IS NULL')->_or_()
840-
->whereLte('course.endDate','0000-00-00')
840+
->whereLte('course.endDate', '0000-00-00')
841841
->count('course.courseID');
842842

843843
$crseCount = '<div class="col-md-4">';
@@ -872,7 +872,7 @@ function dashboard_acadProg_count()
872872
$count = $app->db->acad_program()
873873
->where('acad_program.currStatus = "A"')->_and_()
874874
->where('acad_program.endDate IS NULL')->_or_()
875-
->whereLte('acad_program.endDate','0000-00-00')
875+
->whereLte('acad_program.endDate', '0000-00-00')
876876
->count('acad_program.id');
877877

878878
$progCount = '<div class="col-md-4">';
@@ -1839,7 +1839,7 @@ function etsis_enqueue_script()
18391839
function etsis_dev_mode()
18401840
{
18411841
if (APP_ENV === 'DEV') {
1842-
echo '<div class="alert dismissable alert-danger center sticky">'._t('Your system is currently in DEV mode. Please remember to set your system back to PROD mode after testing. When PROD mode is set, this warning message will disappear.').'</div>';
1842+
echo '<div class="alert dismissable alert-danger center sticky">' . _t('Your system is currently in DEV mode. Please remember to set your system back to PROD mode after testing. When PROD mode is set, this warning message will disappear.') . '</div>';
18431843
}
18441844
}
18451845
$app->hook->add_action('etsis_dashboard_head', 'head_release_meta', 5);
@@ -1864,7 +1864,6 @@ function etsis_dev_mode()
18641864
$app->hook->add_action('post_brgn_stu_crse_reg', 'create_update_sttr_record', 5, 1);
18651865
$app->hook->add_action('dashboard_admin_notices', 'etsis_dev_mode', 5);
18661866
$app->hook->add_action('myetsis_admin_notices', 'etsis_dev_mode', 5);
1867-
$app->hook->add_action('stu_acct_rule', 'etsis_reg_btrl_rule', 5, 3);
18681867
$app->hook->add_action('execute_webreg_check', 'web_reg_check', 5);
18691868
$app->hook->add_filter('the_myetsis_page_content', 'etsis_autop');
18701869
$app->hook->add_filter('the_myetsis_page_content', 'parsecode_unautop');

app/functions/nodeq-function.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ function etsis_nodeq_login_details()
5454
$message = str_replace('#mailaddr#', _h(get_option('mailing_address')), $message);
5555
$message = process_email_html($message, _t("myetSIS Login Details"));
5656
$headers[] = sprintf("From: %s <auto-reply@%s>", _t('myetSIS :: ') . _h(get_option('institution_name')), get_domain_name());
57+
if (!function_exists('etsis_smtp')) {
58+
$headers[] = 'Content-Type: text/html; charset="UTF-8"';
59+
$headers[] = sprintf("X-Mailer: eduTrac SIS %s", RELEASE_TAG);
60+
}
5761

5862
try {
5963
_etsis_email()->etsisMail(_h($r->email), _t("myetSIS Login Details"), $message, $headers);
@@ -119,6 +123,10 @@ function etsis_nodeq_reset_password()
119123
$message = str_replace('#password#', _h($r->password), $message);
120124
$message = process_email_html($message, _t('Reset Password'));
121125
$headers[] = sprintf("From: %s <auto-reply@%s>", $from, get_domain_name());
126+
if (!function_exists('etsis_smtp')) {
127+
$headers[] = 'Content-Type: text/html; charset="UTF-8"';
128+
$headers[] = sprintf("X-Mailer: eduTrac SIS %s", RELEASE_TAG);
129+
}
122130

123131
try {
124132
_etsis_email()->etsisMail(_h($r->email), _t('Reset Password'), $message, $headers);
@@ -172,6 +180,10 @@ function etsis_nodeq_csv_email()
172180
foreach ($sql as $r) {
173181
$message = process_email_html(_escape($r->message), _h($r->subject));
174182
$headers[] = sprintf("From: %s <auto-reply@%s>", _h(get_option('institution_name')), get_domain_name());
183+
if (!function_exists('etsis_smtp')) {
184+
$headers[] = 'Content-Type: text/html; charset="UTF-8"';
185+
$headers[] = sprintf("X-Mailer: eduTrac SIS %s", RELEASE_TAG);
186+
}
175187

176188
$attachment = $app->config('file.savepath') . _h($r->filename);
177189

@@ -248,6 +260,10 @@ function etsis_nodeq_change_address()
248260
$message = str_replace('#mailaddr#', _h(get_option('mailing_address')), $message);
249261
$message = process_email_html($message, _t('Change of Address Request'));
250262
$headers[] = sprintf("From: %s <auto-reply@%s>", _t('myetSIS :: ') . _h(get_option('institution_name')), get_domain_name());
263+
if (!function_exists('etsis_smtp')) {
264+
$headers[] = 'Content-Type: text/html; charset="UTF-8"';
265+
$headers[] = sprintf("X-Mailer: eduTrac SIS %s", RELEASE_TAG);
266+
}
251267

252268
try {
253269
_etsis_email()->etsisMail(_h(get_option('contact_email')), _t('Change of Address Request'), $message, $headers);
@@ -317,6 +333,10 @@ function etsis_nodeq_acceptance_letter()
317333
$message = str_replace('#mailaddr#', _h(get_option('mailing_address')), $message);
318334
$message = process_email_html($message, _h(get_option('institution_name')) . ' ' . _t('Decision Notification'));
319335
$headers[] = sprintf("From: %s <auto-reply@%s>", _h(get_option('institution_name')), get_domain_name());
336+
if (!function_exists('etsis_smtp')) {
337+
$headers[] = 'Content-Type: text/html; charset="UTF-8"';
338+
$headers[] = sprintf("X-Mailer: eduTrac SIS %s", RELEASE_TAG);
339+
}
320340

321341
try {
322342
_etsis_email()->etsisMail(_h(get_option('contact_email')), _h(get_option('institution_name')) . ' ' . _t('Decision Notification'), $message, $headers);
@@ -466,6 +486,10 @@ function etsis_nodeq_student_email()
466486
$headers[] = sprintf("Bcc: %s", _h($r->bcc));
467487
}
468488
$headers[] = sprintf("Reply-to: %s", _h($from->email));
489+
if (!function_exists('etsis_smtp')) {
490+
$headers[] = 'Content-Type: text/html; charset="UTF-8"';
491+
$headers[] = sprintf("X-Mailer: eduTrac SIS %s", RELEASE_TAG);
492+
}
469493

470494
try {
471495
_etsis_email()->etsisMail(_h($to->email), _h($r->subject), $message, $headers, _h($r->attachment) != '' ? [_h($r->attachment)] : []);

0 commit comments

Comments
 (0)