Merge branch 'MDL-74782-master' of https://github.com/ssj365/moodle

This commit is contained in:
Ilya Tregubov
2022-09-07 15:48:56 +04:00
3 changed files with 67 additions and 0 deletions
+12
View File
@@ -766,6 +766,18 @@ EOF;
return $this->is_feature_enabled('importrecordings');
}
/**
* Get recordings_imported from instancedata.
*
* @return bool
*/
public function get_recordings_imported(): bool {
if (config::get('recordings_imported_editable')) {
return (bool) $this->get_instance_var('recordings_imported');
}
return config::get('recordings_imported_default');
}
/**
* Whether this instance is recorded from the start.
*