]> git.mjollnir.org Git - moodle.git/commitdiff
Merged MDL-14086: hide tabs when being forced to edit profile
authormoodler <moodler>
Fri, 28 Mar 2008 06:33:13 +0000 (06:33 +0000)
committermoodler <moodler>
Fri, 28 Mar 2008 06:33:13 +0000 (06:33 +0000)
lang/en_utf8/moodle.php
user/tabs.php

index 112990a701c7d8174a6e733061c154160a0f2762..c97387c9fdce53a0419b9cfd064c3c1943c18fbb 100644 (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:';
index 82f9263793bf12f098ac4465230087a1209090fc..a329943fd00b01ec2fe546eeae0e8dc62fcdce26 100644 (file)
         $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);
+    }
 
 ?>