Permalink
Browse files

MDL-28595 do not print continue link if install fails

  • Loading branch information...
1 parent 22e8ad6 commit f6090a3531b54281a9d73c76f60daa95b7a3f59c @skodak skodak committed Sep 9, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/outputrenderers.php
View
4 lib/outputrenderers.php
@@ -2045,7 +2045,9 @@ public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginf
}
}
- if (!empty($link)) {
+ if (empty($CFG->rolesactive)) {
+ // continue does not make much sense if moodle is not installed yet because error is most probably not recoverable
+ } else if (!empty($link)) {
$output .= $this->continue_button($link);
}

0 comments on commit f6090a3

Please sign in to comment.