X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FContactController.php;h=3e82c7dc8bff5f86d37e92f0a0fb7d66f2437ccb;hb=db98e1f62272cff0b425133aa3b909c5cfa6183d;hp=9a7ade195d7a3e883f5d415471c83ec2fa24fa2f;hpb=1de0f433144272946051bb0df886b8c43459beb8;p=syj.git diff --git a/application/controllers/ContactController.php b/application/controllers/ContactController.php index 9a7ade1..3e82c7d 100644 --- a/application/controllers/ContactController.php +++ b/application/controllers/ContactController.php @@ -9,8 +9,8 @@ class ContactController extends Zend_Controller_Action $this->view->headScript()->appendFile('js/prototype.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'); @@ -119,7 +119,7 @@ class ContactController extends Zend_Controller_Action protected function _jsLocaleStrings() { $this->view->jslocales = array( - 'notEmptyField' => __("Value is required and can't be empty"), + 'notEmptyField' => __("Value is required"), 'invalidMail' => __("Invalid email")); } }