| @@ 3182-3188 (lines=7) @@ | ||
| 3179 | $msg = null; |
|
| 3180 | if (isset($message)) { |
|
| 3181 | $msg = $message; |
|
| 3182 | } else { |
|
| 3183 | $msg = Display::return_message( |
|
| 3184 | get_lang('NotAllowedClickBack').'<br/><br/><a href="'.$home_url.'">'.get_lang('ReturnToCourseHomepage').'</a>', |
|
| 3185 | 'error', |
|
| 3186 | false |
|
| 3187 | ); |
|
| 3188 | } |
|
| 3189 | ||
| 3190 | $msg = Display::div($msg, array('align'=>'center')); |
|
| 3191 | ||
| @@ 3329-3336 (lines=8) @@ | ||
| 3326 | if ($casEnabled) { |
|
| 3327 | $msg .= "</div>"; |
|
| 3328 | } |
|
| 3329 | } else { |
|
| 3330 | // we were not in a course, return to home page |
|
| 3331 | $msg = Display::return_message( |
|
| 3332 | get_lang('NotAllowed').'<br/><br/><a href="'.$home_url.'">'.get_lang('BackHome').'</a><br />', |
|
| 3333 | 'error', |
|
| 3334 | false |
|
| 3335 | ); |
|
| 3336 | } |
|
| 3337 | ||
| 3338 | $tpl->assign('content', $msg); |
|
| 3339 | $tpl->display_one_col_template(); |
|