X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FLoginController.php;h=152d18828a13adb44c88f5c71fe3ba58eb986b3c;hb=c06c7fd6e6f26d31abb8d7c9a9f9e3f2d5b27d5c;hp=4c8aca05771e224d0ed73629fab566998d589d2b;hpb=482c3abbceb9818ee12c355c5d96d15077c04736;p=syj.git diff --git a/application/controllers/LoginController.php b/application/controllers/LoginController.php index 4c8aca0..152d188 100644 --- a/application/controllers/LoginController.php +++ b/application/controllers/LoginController.php @@ -7,9 +7,7 @@ class LoginController extends Zend_Controller_Action public function init() { $this->view->headTitle($this->view->translate("login")); $this->_helper->SyjMedias->addScripts('login'); - $this->view->headLink()->appendStylesheet('css/generic.css', 'all'); - $this->view->headLink()->appendStylesheet('css/form.css', 'all'); - $this->view->headLink()->appendStylesheet('css/login.css', 'all'); + $this->_helper->SyjMedias->addStyleSheets('login'); } public function loginAction() { @@ -56,7 +54,7 @@ class LoginController extends Zend_Controller_Action if (!$pathMapper->find((int)$login_geom_id, $path)) { throw new Syj_Exception_Request(); } - $data['iscreator'] = ($path->creator->id === $userid); + $data['iscreator'] = ($path->creator->id === $user->id); } else { $data['iscreator'] = true; }