MDL-58485 admin: Show all SVG plugin icons
authorJan Dageförde <jan.dagefoerde@ercis.uni-muenster.de>
Tue, 4 Apr 2017 13:44:46 +0000 (15:44 +0200)
committerJan Dageförde <jan.dagefoerde@ercis.uni-muenster.de>
Fri, 7 Apr 2017 08:10:22 +0000 (10:10 +0200)
admin/renderer.php

index 451a504..2d6c362 100644 (file)
@@ -1612,7 +1612,7 @@ class core_admin_renderer extends plugin_renderer_base {
                 $row = new html_table_row();
                 $row->attributes['class'] = 'type-' . $plugin->type . ' name-' . $plugin->type . '_' . $plugin->name;
 
-                if ($this->page->theme->resolve_image_location('icon', $plugin->type . '_' . $plugin->name)) {
+                if ($this->page->theme->resolve_image_location('icon', $plugin->type . '_' . $plugin->name, null)) {
                     $icon = $this->output->pix_icon('icon', '', $plugin->type . '_' . $plugin->name, array('class' => 'icon pluginicon'));
                 } else {
                     $icon = $this->output->spacer();