MDL-58138 completion: Fixes for a number of small issues.

This commit is contained in:
Jake Dallimore 2017-04-12 11:50:43 +08:00
parent 32b93ea7f8
commit 273d310601
25 changed files with 90 additions and 146 deletions

View file

@ -5441,13 +5441,6 @@ class restore_completion_defaults_structure_step extends restore_structure_step
* To conditionally decide if this step must be executed.
*/
protected function execute_condition() {
global $CFG;
// Completion disabled in this site, don't execute.
if (empty($CFG->enablecompletion)) {
return false;
}
// No completion on the front page.
if ($this->get_courseid() == SITEID) {
return false;