From f2dcd845acacbba2d5fbefcf4b7c1d9991b50dc7 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 28 Mar 2008 06:33:13 +0000 Subject: [PATCH] Merged MDL-14086: hide tabs when being forced to edit profile --- lang/en_utf8/moodle.php | 1 + user/tabs.php | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index 112990a701..c97387c9fd 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -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:'; diff --git a/user/tabs.php b/user/tabs.php index 82f9263793..a329943fd0 100644 --- a/user/tabs.php +++ b/user/tabs.php @@ -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); + } ?> -- 2.39.5