diff --git a/Controleur/ControleurAjaxsppolice.php b/Controleur/ControleurAjaxsppolice.php index bfd3bdc..49a8e09 100644 --- a/Controleur/ControleurAjaxsppolice.php +++ b/Controleur/ControleurAjaxsppolice.php @@ -22,7 +22,7 @@ class ControleurAjaxsppolice extends Controleur $dj = date("Y-m-d"); $sppolice = $this->sppolice->getRapportSpPolicePol($idPolice, $dj); - $limiteConsommation = get_limite_consommation_police($idPolice); + $limiteConsommation = $this->sppolice->get_limite_consommation_police($idPolice); $this->genererVueAjax(array('sppolice' => $sppolice, 'limiteConsommation' => $limiteConsommation)); } @@ -34,7 +34,7 @@ class ControleurAjaxsppolice extends Controleur $dj = date("Y-m-d"); $sppolices = $this->sppolice->getRapportSpPoliceCat($idPolice, $dj); - $limiteConsommation = get_limite_consommation_police($idPolice); + $limiteConsommation = $this->sppolice->get_limite_consommation_police($idPolice); $this->genererVueAjax(array('sppolices' => $sppolices, 'limiteConsommation' => $limiteConsommation)); } @@ -46,7 +46,7 @@ class ControleurAjaxsppolice extends Controleur $dj = date("Y-m-d"); $sppolices = $this->sppolice->getRapportSpPoliceCol($idPolice, $dj); - $limiteConsommation = get_limite_consommation_police($idPolice); + $limiteConsommation = $this->sppolice->get_limite_consommation_police($idPolice); $this->genererVueAjax(array('sppolices' => $sppolices, 'limiteConsommation' => $limiteConsommation)); }