Changed two notification to output correctly
authorJuho Viitasalo <juho.viitasalo@uef.fi>
Fri, 9 Mar 2012 11:33:09 +0000 (13:33 +0200)
committerRossiani Wijaya <rwijaya@moodle.com>
Tue, 21 Aug 2012 07:36:34 +0000 (15:36 +0800)
user/profile.php

index 9dafdd9..b5cb4eb 100644 (file)
@@ -61,7 +61,7 @@ $user = $DB->get_record('user', array('id' => $userid));
 if ($user->deleted) {
     $PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
     echo $OUTPUT->header();
-    echo $OUTPUT->heading(get_string('userdeleted'));
+    echo $OUTPUT->notification(get_string('userdeleted'));
     echo $OUTPUT->footer();
     die;
 }
@@ -82,7 +82,7 @@ if (!$currentuser &&
     $PAGE->set_url('/user/profile.php', array('id'=>$userid));
     $PAGE->navbar->add($struser);
     echo $OUTPUT->header();
-    echo $OUTPUT->heading(get_string('usernotavailable', 'error'));
+    echo $OUTPUT->notification(get_string('usernotavailable', 'error'));
     echo $OUTPUT->footer();
     exit;
 }