1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-29 07:02:41 +01:00

Fix check su inclusione script per plugin statistiche

This commit is contained in:
loviuz 2020-02-11 17:07:11 +01:00
parent 575e7f6943
commit b390bd50f7
2 changed files with 14 additions and 7 deletions

View File

@ -30,15 +30,14 @@ echo '
$statistiche = Modules::get('Statistiche');
if( $statistiche->enabled==1 ){
if( $statistiche != null ){
echo '
<script src="'.$statistiche->fileurl('js/functions.js').'"></script>
<script src="'.$statistiche->fileurl('js/manager.js').'"></script>
<script src="'.$statistiche->fileurl('js/calendar.js').'"></script>
<script src="'.$statistiche->fileurl('js/stat.js').'"></script>
<script src="'.$statistiche->fileurl('js/stats/table.js').'"></script>
<script src="'.$statistiche->fileurl('js/stats/widget.js').'"></script>
<script src="'.$statistiche->fileurl('js/init.js').'"></script>';
<script src="'.$statistiche->fileurl('js/stats/widget.js').'"></script>';
}
echo'
@ -51,3 +50,8 @@ function init_calendar(calendar) {
calendar.addElement(widgets);
}
</script>';
if( $statistiche != null ){
echo '
<script src="'.$statistiche->fileurl('js/init.js').'"></script>';
}

View File

@ -78,15 +78,13 @@ echo '
$statistiche = Modules::get('Statistiche');
if( $statistiche->enabled==1 ){
if( $statistiche != null ){
echo '
<script src="'.$statistiche->fileurl('js/functions.js').'"></script>
<script src="'.$statistiche->fileurl('js/manager.js').'"></script>
<script src="'.$statistiche->fileurl('js/calendar.js').'"></script>
<script src="'.$statistiche->fileurl('js/stat.js').'"></script>
<script src="'.$statistiche->fileurl('js/stats/table.js').'"></script>
<script src="'.$statistiche->fileurl('js/init.js').'"></script>';
<script src="'.$statistiche->fileurl('js/stats/table.js').'"></script>';
}
echo'
@ -104,3 +102,8 @@ function init_calendar(calendar) {
calendar.addElement(prezzo_vendita);
}
</script>';
if( $statistiche != null ){
echo '
<script src="'.$statistiche->fileurl('js/init.js').'"></script>';
}