MDL-32683 M.util.image_url shouldn't require the component

This commit is contained in:
Andrew Robert Nicols 2012-05-08 10:25:58 +01:00
parent 114dd080e1
commit b003b556cc

View file

@ -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';
}