Merge branch 'MDL-39760-MOODLE_23_STABLE' of https://github.com/lucisgit/moodle into...
authorSam Hemelryk <sam@moodle.com>
Mon, 24 Jun 2013 02:25:54 +0000 (14:25 +1200)
committerSam Hemelryk <sam@moodle.com>
Mon, 24 Jun 2013 02:25:54 +0000 (14:25 +1200)
Conflicts:
mod/assign/locallib.php

1  2 
mod/assign/locallib.php

@@@ -2662,9 -2662,7 +2662,9 @@@ class assign 
              // Give each submission plugin a chance to process the submission
              $plugins = $this->get_submission_plugins();
              foreach ($plugins as $plugin) {
 -                $plugin->submit_for_grading($submission);
 +                if ($plugin->is_enabled() && $plugin->is_visible()) {
-                     $plugin->submit_for_grading();
++                    $plugin->submit_for_grading($submission);
 +                }
              }
  
              $submission->status = ASSIGN_SUBMISSION_STATUS_SUBMITTED;