X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FContactController.php;h=e72c467514b4bb89bda10917af81261fcb995ae5;hb=8e7d8e39a2ee5801a2f68b95cdc0e84b55da1019;hp=0b71c325151f1647fc54106708af28bca7144e49;hpb=190fd621df4920c56a422c03663874cddaa67d64;p=syj.git diff --git a/application/controllers/ContactController.php b/application/controllers/ContactController.php index 0b71c32..e72c467 100644 --- a/application/controllers/ContactController.php +++ b/application/controllers/ContactController.php @@ -7,10 +7,10 @@ class ContactController extends Zend_Controller_Action public function init() { $this->view->headScript()->appendFile('js/prototype.js'); - $this->view->headScript()->appendFile('js/forms.js'); + $this->view->headScript()->appendFile('js/utils.js'); $this->view->headScript()->appendFile('js/contact.js'); - $this->view->headLink()->appendStylesheet('css/generic.css'); - $this->view->headLink()->appendStylesheet('css/contact.css'); + $this->view->headLink()->appendStylesheet('css/generic.css', 'all'); + $this->view->headLink()->appendStylesheet('css/contact.css', 'all'); $this->view->headTitle($this->view->translate("contact form")); } @@ -84,7 +84,7 @@ class ContactController extends Zend_Controller_Action } if (empty($formData)) { - $user = $this->view->loggedUser(); + $user = $this->_helper->SyjSession->user(); if ($user) { $form->contact_email->setValue($user->email) ->setAttrib('readonly', 'true');