mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-32683 M.util.image_url shouldn't require the component
This commit is contained in:
parent
114dd080e1
commit
b003b556cc
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ M.str = M.str || {};
|
|||
*/
|
||||
M.util.image_url = function(imagename, component) {
|
||||
|
||||
if (component == '' || component == 'moodle' || component == 'core') {
|
||||
if (!component || component == '' || component == 'moodle' || component == 'core') {
|
||||
component = 'core';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue