mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-58538 repository_onedrive: Use image_url() instead of pix_url()
This commit is contained in:
parent
088598ba28
commit
089810fb06
@ -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' => []
|
||||
|
Loading…
x
Reference in New Issue
Block a user