Merged MDL-14086: hide tabs when being forced to edit profile

This commit is contained in:
moodler
2008-03-28 06:33:13 +00:00
parent ae1f11eeb7
commit f2dcd845ac
2 changed files with 8 additions and 3 deletions
+1
View File
@@ -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
View File
@@ -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);
}
?>