X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FContactController.php;h=7caf24e02cbf2349639fb0c8128709ef7c4c1840;hp=aabd9f6630f1c804fa04e35a34bc9a60b013cd6a;hb=7ab93faefae14af39fc5449a2c3311dd68d2c0f9;hpb=1f6105289a49079809c2a4677b561bc82c62db88 diff --git a/application/controllers/ContactController.php b/application/controllers/ContactController.php index aabd9f6..7caf24e 100644 --- a/application/controllers/ContactController.php +++ b/application/controllers/ContactController.php @@ -7,9 +7,7 @@ class ContactController extends Zend_Controller_Action public function init() { $this->_helper->SyjMedias->addScripts('contact'); - $this->view->headLink()->appendStylesheet('css/generic.css', 'all'); - $this->view->headLink()->appendStylesheet('css/form.css', 'all'); - $this->view->headLink()->appendStylesheet('css/contact.css', 'all'); + $this->_helper->SyjMedias->addStyleSheets('contact'); $this->view->headTitle($this->view->translate("contact form")); } @@ -83,7 +81,7 @@ class ContactController extends Zend_Controller_Action } if (empty($formData)) { - $user = $this->_helper->SyjSession->user(); + $user = $this->_helper->SyjUserManager->current(); if ($user) { $form->contact_email->setValue($user->email) ->setAttrib('readonly', 'true');