Fixed problem with openlayer

Former-commit-id: 91eb396d550cd6a90c9c3ba4cbb0ec12c2c51c6e
This commit is contained in:
Daniel Maya 2019-04-03 12:54:36 +02:00
parent dcd5ab6317
commit faecabb1cc
2 changed files with 4 additions and 4 deletions

View File

@ -1736,10 +1736,6 @@ function ui_process_page_head($string, $bitfield)
// Include countdown library
$config['jquery']['countdown'] = 'include/javascript/jquery.countdown.js';
// Include timezone user map library
$config['jquery']['OpenLayers'] = 'include/javascript/OpenLayers.js';
$config['jquery']['jquery.timezone-picker'] = 'include/javascript/jquery.timezone-picker.js';
// Then add each script as necessary
$loaded = [''];
foreach ($config['jquery'] as $name => $filename) {

View File

@ -734,6 +734,10 @@ if (!defined('METACONSOLE')) {
<?php
// Closes no meta condition.
}
// Include OpenLayers and timezone user map library.
echo '<script type="text/javascript" src="'.ui_get_full_url('include/javascript/OpenLayers.js').'"></script>'."\n\t";
echo '<script type="text/javascript" src="'.ui_get_full_url('include/javascript/jquery.timezone-picker.js').'"></script>'."\n\t";
?>
<script language="javascript" type="text/javascript">