diff --git a/application/modules/default/controllers/AideController.php b/application/modules/default/controllers/AideController.php index 47fa01c5a..53bf9b76e 100644 --- a/application/modules/default/controllers/AideController.php +++ b/application/modules/default/controllers/AideController.php @@ -11,6 +11,10 @@ class AideController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); } diff --git a/application/modules/default/controllers/AuthController.php b/application/modules/default/controllers/AuthController.php index c344942c9..f9bb635cc 100644 --- a/application/modules/default/controllers/AuthController.php +++ b/application/modules/default/controllers/AuthController.php @@ -22,6 +22,10 @@ class AuthController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); } diff --git a/application/modules/default/controllers/BdfController.php b/application/modules/default/controllers/BdfController.php index 0d0634f92..b31f499ec 100644 --- a/application/modules/default/controllers/BdfController.php +++ b/application/modules/default/controllers/BdfController.php @@ -11,6 +11,10 @@ class BdfController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); } diff --git a/application/modules/default/controllers/DashboardController.php b/application/modules/default/controllers/DashboardController.php index 127eca8df..d074b9058 100644 --- a/application/modules/default/controllers/DashboardController.php +++ b/application/modules/default/controllers/DashboardController.php @@ -134,6 +134,10 @@ class DashboardController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/DirigeantController.php b/application/modules/default/controllers/DirigeantController.php index 3c2a96ca6..25910f5a1 100644 --- a/application/modules/default/controllers/DirigeantController.php +++ b/application/modules/default/controllers/DirigeantController.php @@ -13,6 +13,10 @@ class DirigeantController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/ErrorController.php b/application/modules/default/controllers/ErrorController.php index 908ffb938..58e49ddf3 100644 --- a/application/modules/default/controllers/ErrorController.php +++ b/application/modules/default/controllers/ErrorController.php @@ -11,6 +11,10 @@ class ErrorController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); } diff --git a/application/modules/default/controllers/EvaluationController.php b/application/modules/default/controllers/EvaluationController.php index 188de15aa..aa2749b46 100644 --- a/application/modules/default/controllers/EvaluationController.php +++ b/application/modules/default/controllers/EvaluationController.php @@ -13,6 +13,10 @@ class EvaluationController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/FinanceController.php b/application/modules/default/controllers/FinanceController.php index 41d2cc29f..152a9b398 100644 --- a/application/modules/default/controllers/FinanceController.php +++ b/application/modules/default/controllers/FinanceController.php @@ -13,6 +13,10 @@ class FinanceController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/GiantController.php b/application/modules/default/controllers/GiantController.php index c019e78ba..8f8165a7d 100644 --- a/application/modules/default/controllers/GiantController.php +++ b/application/modules/default/controllers/GiantController.php @@ -48,6 +48,10 @@ class GiantController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/IdentiteController.php b/application/modules/default/controllers/IdentiteController.php index 7af1f0df7..ef4d4b2be 100644 --- a/application/modules/default/controllers/IdentiteController.php +++ b/application/modules/default/controllers/IdentiteController.php @@ -13,6 +13,10 @@ class IdentiteController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/IndexController.php b/application/modules/default/controllers/IndexController.php index 8c649c555..8f189d4ec 100644 --- a/application/modules/default/controllers/IndexController.php +++ b/application/modules/default/controllers/IndexController.php @@ -9,6 +9,13 @@ class IndexController extends Zend_Controller_Action */ protected $logger; + public function init() + { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + } + /** * Page d'accueil et de redirection */ diff --git a/application/modules/default/controllers/JuridiqueController.php b/application/modules/default/controllers/JuridiqueController.php index f45d10ad9..8a54d7003 100644 --- a/application/modules/default/controllers/JuridiqueController.php +++ b/application/modules/default/controllers/JuridiqueController.php @@ -13,6 +13,10 @@ class JuridiqueController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/LogoController.php b/application/modules/default/controllers/LogoController.php index eb254c883..55132f899 100644 --- a/application/modules/default/controllers/LogoController.php +++ b/application/modules/default/controllers/LogoController.php @@ -12,6 +12,10 @@ class LogoController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/MandataireController.php b/application/modules/default/controllers/MandataireController.php index 3abfb7619..afbb04631 100644 --- a/application/modules/default/controllers/MandataireController.php +++ b/application/modules/default/controllers/MandataireController.php @@ -62,6 +62,10 @@ class MandataireController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/OrderController.php b/application/modules/default/controllers/OrderController.php index a694e2587..805308e86 100644 --- a/application/modules/default/controllers/OrderController.php +++ b/application/modules/default/controllers/OrderController.php @@ -11,6 +11,10 @@ class OrderController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); } diff --git a/application/modules/default/controllers/PiecesController.php b/application/modules/default/controllers/PiecesController.php index f9725af90..c4383e1fa 100644 --- a/application/modules/default/controllers/PiecesController.php +++ b/application/modules/default/controllers/PiecesController.php @@ -26,6 +26,10 @@ class PiecesController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/PrintController.php b/application/modules/default/controllers/PrintController.php index 9294f4730..f7131e2ec 100644 --- a/application/modules/default/controllers/PrintController.php +++ b/application/modules/default/controllers/PrintController.php @@ -11,6 +11,10 @@ class PrintController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); } diff --git a/application/modules/default/controllers/RechercheController.php b/application/modules/default/controllers/RechercheController.php index 2e4f67b16..d142f15db 100644 --- a/application/modules/default/controllers/RechercheController.php +++ b/application/modules/default/controllers/RechercheController.php @@ -11,6 +11,10 @@ class RechercheController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/SaisieController.php b/application/modules/default/controllers/SaisieController.php index 784983191..23a7772c9 100644 --- a/application/modules/default/controllers/SaisieController.php +++ b/application/modules/default/controllers/SaisieController.php @@ -246,6 +246,10 @@ class SaisieController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/SurveillanceController.php b/application/modules/default/controllers/SurveillanceController.php index 4aedeeb03..d462ef05e 100644 --- a/application/modules/default/controllers/SurveillanceController.php +++ b/application/modules/default/controllers/SurveillanceController.php @@ -43,6 +43,10 @@ class SurveillanceController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/TelechargementController.php b/application/modules/default/controllers/TelechargementController.php index a658dd12f..494257758 100644 --- a/application/modules/default/controllers/TelechargementController.php +++ b/application/modules/default/controllers/TelechargementController.php @@ -21,7 +21,11 @@ class TelechargementController extends Zend_Controller_Action public function init() { - $this->_helper->layout()->disableLayout(); + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + + $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); $c = Zend_Registry::get('config'); diff --git a/application/modules/default/controllers/UserController.php b/application/modules/default/controllers/UserController.php index 9be60cee8..ece6c73ad 100644 --- a/application/modules/default/controllers/UserController.php +++ b/application/modules/default/controllers/UserController.php @@ -36,6 +36,10 @@ class UserController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme'); diff --git a/application/modules/default/controllers/WorldcheckController.php b/application/modules/default/controllers/WorldcheckController.php index b61b16db1..9ecc40732 100644 --- a/application/modules/default/controllers/WorldcheckController.php +++ b/application/modules/default/controllers/WorldcheckController.php @@ -12,6 +12,10 @@ class WorldcheckController extends Zend_Controller_Action public function init() { + if (Zend_Registry::isRegistered('logger')) { + $this->logger = Zend_Registry::get('logger'); + } + // --- Theme $this->theme = Zend_Registry::get('theme');