Fix typo in path

This commit is contained in:
Michal Čihař
2011-02-08 10:07:24 +01:00
parent 7d599c14ba
commit 1b6f4c076d

View File

@@ -682,10 +682,10 @@ function PMA_linkURL($url) {
* @return string HTML code for javascript inclusion.
*/
function PMA_includeJS($url) {
if (strpos($js_script_file, '?') === FALSE) {
return '<script src="./js/' . $js_script_file . '?ts=' . filemtime('./js/' . $js_script_file) . '" type="text/javascript"></script>' . "\n";
if (strpos($url, '?') === FALSE) {
return '<script src="./js/' . $url . '?ts=' . filemtime('./js/' . $url) . '" type="text/javascript"></script>' . "\n";
} else {
return '<script src="./js/' . $js_script_file . '" type="text/javascript"></script>' . "\n";
return '<script src="./js/' . $url . '" type="text/javascript"></script>' . "\n";
}
}
?>