MDL-58538 repository_onedrive: Use image_url() instead of pix_url()

This commit is contained in:
Jun Pataleta 2017-04-07 17:25:44 +08:00
parent 088598ba28
commit 089810fb06

View File

@ -283,6 +283,8 @@ class repository_onedrive extends repository {
* @param string $parent Parent id.
* @param int $page page.
* @return array of files and folders.
* @throws Exception
* @throws repository_exception
*/
protected function query($q, $path = null, $parent = null, $page = 0) {
global $OUTPUT;
@ -322,7 +324,7 @@ class repository_onedrive extends repository {
'title' => $remotefile->name,
'path' => $this->build_node_path($remotefile->id, $remotefile->name, $path),
'date' => strtotime($remotefile->lastModifiedDateTime),
'thumbnail' => $OUTPUT->pix_url(file_folder_icon(64))->out(false),
'thumbnail' => $OUTPUT->image_url(file_folder_icon(64))->out(false),
'thumbnail_height' => 64,
'thumbnail_width' => 64,
'children' => []