*/
protected function execute_condition() {
+ // Do not restore when competencies are disabled.
+ if (!\core_competency\api::is_enabled()) {
+ return false;
+ }
+
// Do not execute if the competencies XML file is not found.
$fullpath = $this->task->get_taskbasepath();
$fullpath = rtrim($fullpath, '/') . '/' . $this->filename;
*/
protected function execute_condition() {
+ // Do not restore when competencies are disabled.
+ if (!\core_competency\api::is_enabled()) {
+ return false;
+ }
+
// Do not execute if the competencies XML file is not found.
$fullpath = $this->task->get_taskbasepath();
$fullpath = rtrim($fullpath, '/') . '/' . $this->filename;