MDL-30308 outputrequirementslib.php breaks xhtml validation

Credit goes to Matthew Davidson.
This commit is contained in:
Petr Skoda 2011-11-19 18:43:55 +01:00
parent fe41ba7489
commit 32322d8680

View File

@ -973,9 +973,9 @@ class page_requirements_manager {
}
if (debugging('', DEBUG_DEVELOPER)) {
$code .= '<script src="'.$this->yui3loader->base.'yui/yui-debug.js"></script>';
$code .= '<script type="text/javascript" src="'.$this->yui3loader->base.'yui/yui-debug.js"></script>';
} else {
$code .= '<script src="'.$this->yui3loader->base.'yui/yui-min.js"></script>';
$code .= '<script type="text/javascript" src="'.$this->yui3loader->base.'yui/yui-min.js"></script>';
}
return $code;