Merge branch 'MDL-50038-27' of git://github.com/FMCorz/moodle into MOODLE_27_STABLE

This commit is contained in:
Andrew Nicols
2015-04-30 14:56:54 +08:00
+5
View File
@@ -46,6 +46,11 @@ $reset = optional_param('reset', null, PARAM_BOOL);
require_login();
$hassiteconfig = has_capability('moodle/site:config', context_system::instance());
if ($hassiteconfig && moodle_needs_upgrading()) {
redirect(new moodle_url('/admin/index.php'));
}
$strmymoodle = get_string('myhome');
if (isguestuser()) { // Force them to see system default, no editing allowed