MDL-22983 fixed incorrect repo icon locations - the /pix/ subfolder is the only way now
Before Width: | Height: | Size: 755 B After Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 824 B After Width: | Height: | Size: 824 B |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 633 B After Width: | Height: | Size: 633 B |
Before Width: | Height: | Size: 874 B After Width: | Height: | Size: 874 B |
Before Width: | Height: | Size: 936 B After Width: | Height: | Size: 936 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
@ -1191,13 +1191,13 @@ abstract class repository {
|
||||
* @return object
|
||||
*/
|
||||
final public function get_meta() {
|
||||
global $CFG;
|
||||
global $CFG, $OUTPUT;
|
||||
$ft = new filetype_parser;
|
||||
$meta = new stdclass;
|
||||
$meta->id = $this->id;
|
||||
$meta->name = $this->get_name();
|
||||
$meta->type = $this->options['type'];
|
||||
$meta->icon = $CFG->httpswwwroot.'/repository/'.$meta->type.'/icon.png';
|
||||
$meta->icon = $OUTPUT->pix_url('icon', 'repository_'.$meta->type)->out(false);
|
||||
$meta->supported_types = $ft->get_extensions($this->supported_filetypes());
|
||||
$meta->return_types = $this->supported_returntypes();
|
||||
return $meta;
|
||||
|
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 430 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 714 B After Width: | Height: | Size: 714 B |