Author: jablko
Date: Sun Oct 24 10:22:43 2010
New Revision: 8412

Log:
Add title

Modified:
   trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/indexAction.class.php

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/indexAction.class.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/indexAction.class.php   
    Sun Oct 24 10:19:26 2010        (r8411)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/indexAction.class.php   
    Sun Oct 24 10:22:43 2010        (r8412)
@@ -23,6 +23,15 @@
   {
     parent::execute($request);
 
+    $this->isdf = new sfIsdfPlugin($this->resource);
+
+    if (1 > strlen($title = $this->resource))
+    {
+      $title = $this->context->i18n->__('Untitled');
+    }
+
+    $this->response->setTitle("$title - {$this->resource->getTitle()}");
+
     $this->maintenanceNotes = 
$this->resource->getNotesByType(array('noteTypeId' => 
QubitTerm::MAINTENANCE_NOTE_ID));
 
     // Find function to function relations with current function as subject or

-- 
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.

Reply via email to