Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.4.7, 2.6
-
Component/s: Files API
-
Testing Instructions:
- Run the code checker on lib/filelib.php and make sure there's no issues on lines (1169-1170).
-
Difficulty:Easy
-
Affected Branches:MOODLE_24_STABLE, MOODLE_26_STABLE
-
Fixed Branches:MOODLE_26_STABLE, MOODLE_27_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-43063-master -
Pull Master Diff URL:
-
Story Points:3
-
Sprint:BACKEND Sprint 14
Description
The inline docs for function download_file_content() in lib/filelib.php states: "@return mixed ... content of the file as string if ok"
Actually it returns a the response as a stdClass object if ok containing the properties
{status, headers, response_code, results, error}