| @@ 3193-3199 (lines=7) @@ | ||
| 3190 | $msg = null; |
|
| 3191 | if (isset($message)) { |
|
| 3192 | $msg = $message; |
|
| 3193 | } else { |
|
| 3194 | $msg = Display::return_message( |
|
| 3195 | get_lang('NotAllowedClickBack').'<br/><br/><a href="'.$home_url.'">'.get_lang('ReturnToCourseHomepage').'</a>', |
|
| 3196 | 'error', |
|
| 3197 | false |
|
| 3198 | ); |
|
| 3199 | } |
|
| 3200 | ||
| 3201 | $msg = Display::div($msg, array('align'=>'center')); |
|
| 3202 | ||
| @@ 3340-3347 (lines=8) @@ | ||
| 3337 | if ($casEnabled) { |
|
| 3338 | $msg .= "</div>"; |
|
| 3339 | } |
|
| 3340 | } else { |
|
| 3341 | // we were not in a course, return to home page |
|
| 3342 | $msg = Display::return_message( |
|
| 3343 | get_lang('NotAllowed').'<br/><br/><a href="'.$home_url.'">'.get_lang('BackHome').'</a><br />', |
|
| 3344 | 'error', |
|
| 3345 | false |
|
| 3346 | ); |
|
| 3347 | } |
|
| 3348 | ||
| 3349 | $tpl->assign('content', $msg); |
|
| 3350 | $tpl->display_one_col_template(); |
|