mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-58138 completion: Fixes for a number of small issues.
This commit is contained in:
parent
32b93ea7f8
commit
273d310601
25 changed files with 90 additions and 146 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue