X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FIdxController.php;h=caad6a1595bb51f09562d3e5698640973a013f69;hp=ac315581eafbc29eb300c65cbba1a7c9c908b835;hb=a64d41557a62ec6051d7fa08d1ba941e089aa5c2;hpb=3c4eae3c94fd2369087cd3cc73e195cbc48fc433 diff --git a/application/controllers/IdxController.php b/application/controllers/IdxController.php index ac31558..caad6a1 100644 --- a/application/controllers/IdxController.php +++ b/application/controllers/IdxController.php @@ -68,14 +68,12 @@ class IdxController extends Zend_Controller_Action } if (isset($path)) { - if ($user and $path->owner->id == $user->id) { - $loggedinfo->isowner = true; - } else { - $loggedinfo->isowner = false; + $loggedinfo->iscreator = $path->isCreator($user); + if ($path->creator) { + $loggedinfo->creatorname = $this->view->escape((string)$path->creator->pseudo); } - $loggedinfo->ownername = $this->view->escape((string)$path->owner->pseudo); } else { - $loggedinfo->isowner = true; + $loggedinfo->iscreator = true; } $this->view->headScript()->prependScript((string) $loggedinfo); @@ -93,8 +91,6 @@ class IdxController extends Zend_Controller_Action 'userEmptyWarn' => __("you must enter a login name"), 'loginSuccess' => __("Login correct"), 'loginFailure' => __("Wrong login/password"), - 'loginNeeded' => __("You need to login before retrying to save"), - 'cookiesNeeded' => __("You need to have cookies enabled to login to SYJ"), 'passwordEmptyWarn' => __("you must enter a password"), 'passwordNoMatchWarn' => __("Password do not match"), 'acceptTermsofuseWarn' => __("You must accept terms of use"),