Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "MDL-38254 Assignment Module: add avaialble message to all ass…

…ignment types"

This reverts commit 079a76b.
  • Loading branch information...
commit caf677457616b60df01bdf50b1d52675f7600db8 1 parent 1b68e51
@danpoltawski danpoltawski authored
View
6 mod/assignment/lib.php
@@ -165,12 +165,6 @@ function view() {
$this->view_dates();
- if ($this->isopen() && $this->assignment->timedue > 0 && $this->assignment->timedue < time()) {
- echo $OUTPUT->heading(get_string('closedassignment','assignment'), 3);
- } else if ($this->assignment->timeavailable > time()) {
- echo $OUTPUT->heading(get_string('futureaassignment','assignment'), 3);
- }
-
$this->view_feedback();
$this->view_footer();
View
4 mod/assignment/type/online/assignment.class.php
@@ -127,9 +127,7 @@ function view() {
$button->render();
}
} else if ($this->isopen()){ //fix for #4206
- echo $OUTPUT->heading(get_string('emptysubmission','assignment'), 3);
- } else if ($this->assignment->timeavailable > time()) {
- echo $OUTPUT->heading(get_string('futureaassignment','assignment'), 3);
+ echo '<div style="text-align:center">'.get_string('emptysubmission', 'assignment').'</div>';
}
}
echo $OUTPUT->box_end();
View
8 mod/assignment/type/uploadsingle/assignment.class.php
@@ -85,12 +85,8 @@ function view() {
}
}
- if (is_enrolled($this->context, $USER, 'mod/assignment:submit') && (!$filecount || $this->assignment->resubmit || !$submission->timemarked)) {
- if ($this->isopen()) {
- $this->view_upload_form();
- } else if ($this->assignment->timeavailable > time()) {
- echo $OUTPUT->heading(get_string('futureaassignment','assignment'), 3);
- }
+ if (is_enrolled($this->context, $USER, 'mod/assignment:submit') && $this->isopen() && (!$filecount || $this->assignment->resubmit || !$submission->timemarked)) {
+ $this->view_upload_form();
}
$this->view_footer();
Please sign in to comment.
Something went wrong with that request. Please try again.