]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19813 Migrated calls to close_window_button()
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 02:53:02 +0000 (02:53 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 02:53:02 +0000 (02:53 +0000)
mod/quiz/reviewquestion.php

index e4750d90d1d9c6983d1972c11c041cb7f0047078..d536124001b26468fdfa7c8c23dbbd9e4eb75154 100644 (file)
     /// Can't review during the attempt - send them back to the attempt page.
         if (!$attemptobj->is_finished()) {
             notify(get_string('cannotreviewopen', 'quiz'));
-            close_window_button();
+            echo $OUTPUT->close_window_button();
         }
     /// Can't review other users' attempts.
         if (!$attemptobj->is_own_attempt()) {
             notify(get_string('notyourattempt', 'quiz'));
-            close_window_button();
+            echo $OUTPUT->close_window_button();
         }
     /// Can't review unless Students may review -> Responses option is turned on.
         if (!$options->responses) {
             $accessmanager = $attemptobj->get_access_manager(time());
             notify($accessmanager->cannot_review_message($attemptobj->get_review_options()));
-            close_window_button();
+            echo $OUTPUT->close_window_button();
         }
     }