Author: jablko
Date: Sun Oct 24 10:19:26 2010
New Revision: 8411
Log:
Add title
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/editAction.class.php
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/editAction.class.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/editAction.class.php
Sun Oct 24 10:10:29 2010 (r8410)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/editAction.class.php
Sun Oct 24 10:19:26 2010 (r8411)
@@ -48,6 +48,19 @@
$this->isdf = new sfIsdfPlugin($this->resource);
+ $title = $this->context->i18n->__('Add new function');
+ if (isset($this->getRoute()->resource))
+ {
+ if (1 > strlen($title = $this->resource))
+ {
+ $title = $this->context->i18n->__('Untitled');
+ }
+
+ $title = "Edit $title";
+ }
+
+ $this->response->setTitle("$title - {$this->response->getTitle()}");
+
$this->relatedAuthorityRecordComponent = new
sfIsdfPluginRelatedAuthorityRecordComponent($this->context, 'sfIsdfPlugin',
'relatedAuthorityRecord');
$this->relatedAuthorityRecordComponent->resource = $this->resource;
$this->relatedAuthorityRecordComponent->execute($this->request);
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.