Merged MDL-14086: hide tabs when being forced to edit profile
This commit is contained in:
@@ -958,6 +958,7 @@ $string['moodledocslink'] = 'Moodle Docs for this page';
|
||||
$string['moodleversion'] = 'Moodle Version';
|
||||
$string['more'] = 'more';
|
||||
$string['moreinformation'] = 'More information about this error';
|
||||
$string['moreprofileinfoneeded'] = 'Please tell us more about yourself';
|
||||
$string['mostrecently'] = 'most recently';
|
||||
$string['move'] = 'Move';
|
||||
$string['movecategoryto'] = 'Move category to:';
|
||||
|
||||
+7
-3
@@ -246,8 +246,12 @@
|
||||
$tabs = array($toprow);
|
||||
}
|
||||
|
||||
/// Print out the tabs and continue!
|
||||
|
||||
print_tabs($tabs, $currenttab, $inactive, $activetwo);
|
||||
if ($currenttab == 'editprofile' && ($user->id == $USER->id) && user_not_fully_set_up($USER)) {
|
||||
/// We're being forced here to fix profile
|
||||
notify(get_string('moreprofileinfoneeded'));
|
||||
} else {
|
||||
/// Print out the tabs and continue!
|
||||
print_tabs($tabs, $currenttab, $inactive, $activetwo);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user