1
0

the jquery check does not want to iterate a fallback

References #343
This commit is contained in:
Ian
2015-08-16 18:32:02 +02:00
parent d5eae21a9c
commit a5d5e7d940

View File

@ -25,11 +25,11 @@ $serendipity['core_events']['backend_header']['jquery'] = 'serendipity_plugin_a
function serendipity_plugin_api_frontend_header($event_name, &$bag, &$eventData, $addData) {
global $serendipity;
// Only execute if current template does not have its own jquery.js file
// Only execute if current template (only) does not have its own jquery.js file
// jquery can be disabled if a template's config.inc.php or a plugin sets
// $serendipity['capabilities']['jquery'] = false
$check = serendipity_getTemplateFile('jquery.js');
$check = file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $serendipity['template'] . '/jquery.js');
if (!$check && $serendipity['capabilities']['jquery']) {
?>
<script src="<?php echo $serendipity['serendipityHTTPPath']; ?>templates/jquery.js"></script>