]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/ContactController.php
read initial geom from js object instead of form input
[syj.git] / application / controllers / ContactController.php
index 03dd4a6b645436290fcf7fbc60c2dbb5c7d9edc6..e8e2843d35d9d064760407428ee47da4e6eae844 100644 (file)
@@ -7,8 +7,7 @@ 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/highlight.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');
@@ -85,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');