Add variables to OfajEndLpDescription and DoDiagnosisNow

ofaj
jmontoyaa 9 years ago
parent 77296e1910
commit 1ec297f147
  1. 14
      main/messages/new_message.php
  2. 10
      user_portal.php

@ -226,8 +226,20 @@ function manage_form($default, $select_from_user_list = null, $sent_to = null)
if (isset($_GET['prefill'])) {
switch ($_GET['prefill']) {
case 'ofaj':
$sendToUser = isset($_GET['send_to_user']) ? $_GET['send_to_user'] : 0;
$sendToUserFullName = '';
if ($sendToUser) {
$sendToUserInfo = api_get_user_info($sendToUser);
$sendToUserFullName = $sendToUserInfo['complete_name'];
}
$currentUserInfo = api_get_user_info();
$default['title'] = get_lang('OfajEndLPSubject');
$default['content'] = get_lang('OfajEndLpDescription');
$default['content'] = sprintf(
get_lang('OfajEndLpDescription'),
$sendToUserFullName,
$currentUserInfo['complete_name'],
$currentUserInfo['complete_name']
);
break;
}
}

@ -228,7 +228,15 @@ if (api_is_student()) {
);
if ($diagnosisComplete === false) {
Display::addFlash(Display::return_message(get_lang('DoDiagnosisNow')));
$url = api_get_path(WEB_PATH).'search.php';
$link = Display::url($url, $url);
Display::addFlash(
Display::return_message(
sprintf(get_lang('DoDiagnosisNow'), $link),
'normal',
false
)
);
}
}

Loading…
Cancel
Save