diff --git a/backup/moodle2/restore_qtype_plugin.class.php b/backup/moodle2/restore_qtype_plugin.class.php index 8a242f57a1f..56a8cda82a7 100644 --- a/backup/moodle2/restore_qtype_plugin.class.php +++ b/backup/moodle2/restore_qtype_plugin.class.php @@ -340,4 +340,13 @@ abstract class restore_qtype_plugin extends restore_plugin { return $contents; } + + /** + * Returns one array with filearea => mappingname elements for the qtype + * + * Used by {@link get_components_and_fileareas} to know about all the qtype- * files to be processed both in backup and restore. + */ + public static function get_qtype_fileareas() { + // By default, return empty array, only qtypes having own fileareas wil- return array(); + } } diff --git a/question/type/numerical/backup/moodle2/backup_qtype_numerical_plugin.class.php b/question/type/numerical/backup/moodle2/backup_qtype_numerical_plugin.class.php index a0693955bd3..7b404b603d0 100644 --- a/question/type/numerical/backup/moodle2/backup_qtype_numerical_plugin.class.php +++ b/question/type/numerical/backup/moodle2/backup_qtype_numerical_plugin.class.php @@ -75,14 +75,4 @@ class backup_qtype_numerical_plugin extends backup_qtype_plugin { return $plugin; } - - /** - * Returns one array with filearea => mappingname elements for the qtype - * - * Used by {@link get_components_and_fileareas} to know about all the qtype - * files to be processed both in backup and restore. - */ - public static function get_qtype_fileareas() { - return array(); - } } diff --git a/question/type/numerical/backup/moodle2/restore_qtype_numerical_plugin.class.php b/question/type/numerical/backup/moodle2/restore_qtype_numerical_plugin.class.php index 16649cc7a08..b2f102856e2 100644 --- a/question/type/numerical/backup/moodle2/restore_qtype_numerical_plugin.class.php +++ b/question/type/numerical/backup/moodle2/restore_qtype_numerical_plugin.class.php @@ -54,7 +54,6 @@ class restore_qtype_numerical_plugin extends restore_qtype_plugin { $elepath = $this->get_pathfor('/numerical_records/numerical_record'); $paths[] = new restore_path_element($elename, $elepath); - return $paths; // And we return the interesting paths }