| @@ 3209-3215 (lines=7) @@ | ||
| 3206 | $msg = null; |
|
| 3207 | if (isset($message)) { |
|
| 3208 | $msg = $message; |
|
| 3209 | } else { |
|
| 3210 | $msg = Display::return_message( |
|
| 3211 | get_lang('NotAllowedClickBack').'<br/><br/><a href="'.$home_url.'">'.get_lang('ReturnToCourseHomepage').'</a>', |
|
| 3212 | 'error', |
|
| 3213 | false |
|
| 3214 | ); |
|
| 3215 | } |
|
| 3216 | ||
| 3217 | $msg = Display::div($msg, array('align'=>'center')); |
|
| 3218 | ||
| @@ 3356-3363 (lines=8) @@ | ||
| 3353 | if ($casEnabled) { |
|
| 3354 | $msg .= "</div>"; |
|
| 3355 | } |
|
| 3356 | } else { |
|
| 3357 | // we were not in a course, return to home page |
|
| 3358 | $msg = Display::return_message( |
|
| 3359 | get_lang('NotAllowed').'<br/><br/><a href="'.$home_url.'">'.get_lang('BackHome').'</a><br />', |
|
| 3360 | 'error', |
|
| 3361 | false |
|
| 3362 | ); |
|
| 3363 | } |
|
| 3364 | ||
| 3365 | $tpl->assign('content', $msg); |
|
| 3366 | $tpl->display_one_col_template(); |
|