Revert "MDL-38254 Assignment Module: add avaialble message to all assignment types"
[moodle.git] / mod / assignment / type / online / assignment.class.php
index 103a8dd..a917d31 100644 (file)
@@ -127,9 +127,7 @@ class assignment_online extends assignment_base {
                         $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();