Bend over for XHTML 1.0 Strict ... MDL-8049
Removed Javascript language attribute tags and added CDATA
This commit is contained in:
@@ -42,14 +42,14 @@
|
||||
$file = $CFG->dirroot . '/'.$CFG->admin.'/xmldb/actions/' . $action . '/' . $action . '.js';
|
||||
$wwwfile = $CFG->wwwroot . '/'.$CFG->admin.'/xmldb/actions/' . $action . '/' . $action . '.js';
|
||||
if (file_exists($file) && is_readable($file)) {
|
||||
echo '<script language="JavaScript" type="text/javascript" src="' . $wwwfile . '"></script>' . "\n";
|
||||
echo '<script type="text/javascript" src="' . $wwwfile . '"></script>' . "\n";
|
||||
} else {
|
||||
/// Try to load the postaction javascript if exists
|
||||
if ($postaction) {
|
||||
$file = $CFG->dirroot . '/'.$CFG->admin.'/xmldb/actions/' . $postaction . '/' . $postaction . '.js';
|
||||
$wwwfile = $CFG->wwwroot . '/'.$CFG->admin.'/xmldb/actions/' . $postaction . '/' . $postaction . '.js';
|
||||
if (file_exists($file) && is_readable($file)) {
|
||||
echo '<script language="JavaScript" type="text/javascript" src="' . $wwwfile . '"></script>' . "\n";
|
||||
echo '<script type="text/javascript" src="' . $wwwfile . '"></script>' . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user