Bugfix disattivazione modulo statistiche

This commit is contained in:
Beppe 2020-02-11 16:58:25 +01:00
parent 18e3a4f6ef
commit 575e7f6943
2 changed files with 26 additions and 19 deletions

View File

@ -29,14 +29,19 @@ echo '
</div>';
$statistiche = Modules::get('Statistiche');
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>
if( $statistiche->enabled==1 ){
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>';
}
echo'
<script>
var local_url = "'.str_replace('edit.php', '', $structure->fileurl('edit.php')).'";
@ -45,6 +50,4 @@ function init_calendar(calendar) {
calendar.addElement(widgets);
}
</script>
<script src="'.$statistiche->fileurl('js/init.js').'"></script>';
</script>';

View File

@ -78,12 +78,18 @@ echo '
$statistiche = Modules::get('Statistiche');
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>
if( $statistiche->enabled==1 ){
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>';
}
echo'
<script src="'.$structure->fileurl('js/prezzo.js').'"></script>
@ -97,6 +103,4 @@ function init_calendar(calendar) {
calendar.addElement(prezzo_acquisto);
calendar.addElement(prezzo_vendita);
}
</script>
<script src="'.$statistiche->fileurl('js/init.js').'"></script>';
</script>';