-
Type:
Improvement
-
Status: Closed
-
Priority:
Critical
-
Resolution: Won't Fix
-
Affects Version/s: 2.0
-
Fix Version/s: None
-
Component/s: Hub
-
Labels:None
-
Difficulty:Difficult
-
Affected Branches:MOODLE_20_STABLE
I tried to save a backup in the system context with fileaera='hub_backup'. However I discovered than I can't do that. The file API doesn't let me retrieve a "system context" fileinfo if the fileaera is not null.
get_file_info_system()
|
:
|
if (is_null($filearea)) {
|
return new file_info_system($this);
|
}
|
//TODO: question files browsing
|
|
return null;
|
I need to save a file in system context because the context cannot be course/user/module. These are the only available context.
- will be (partly) resolved by
-
MDL-22950 add component column to files table
-
- Closed
-