]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/ContactController.php
cache js, css and png files
[syj.git] / application / controllers / ContactController.php
index 9520a67227dc5c644f3c5a4570d5a28aa4ffbe4c..7caf24e02cbf2349639fb0c8128709ef7c4c1840 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
     and is published under the AGPL license. */
 
 class ContactController extends Zend_Controller_Action
@@ -7,8 +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/contact.css', 'all');
+        $this->_helper->SyjMedias->addStyleSheets('contact');
         $this->view->headTitle($this->view->translate("contact form"));
     }
 
@@ -82,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');