Skip to content

Commit

Permalink
MDL-22983 fixed incorrect repo icon locations - the /pix/ subfolder i…
Browse files Browse the repository at this point in the history
…s the only way now
  • Loading branch information
skodak committed Jul 3, 2010
1 parent a090554 commit c82d732
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 2 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions repository/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1191,13 +1191,13 @@ public function supported_returntypes() {
* @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;
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit c82d732

Please sign in to comment.