Author: jablko
Date: Fri Oct 15 18:23:09 2010
New Revision: 8177

Log:
Drop intermediate variables

Modified:
   trunk/apps/qubit/modules/function/actions/indexAction.class.php
   trunk/apps/qubit/modules/function/templates/indexIsdfSuccess.php

Modified: trunk/apps/qubit/modules/function/actions/indexAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/function/actions/indexAction.class.php     Fri Oct 
15 18:19:44 2010        (r8176)
+++ trunk/apps/qubit/modules/function/actions/indexAction.class.php     Fri Oct 
15 18:23:09 2010        (r8177)
@@ -23,8 +23,6 @@
   {
     $this->resource = $this->getRoute()->resource;
 
-    $this->parallelNames = $this->resource->getOtherNames(array('typeId' => 
QubitTerm::PARALLEL_FORM_OF_NAME_ID));
-    $this->otherNames = $this->resource->getOtherNames(array('typeId' => 
QubitTerm::OTHER_FORM_OF_NAME_ID));
     $this->maintenanceNotes = 
$this->resource->getNotesByType(array('noteTypeId' => 
QubitTerm::MAINTENANCE_NOTE_ID));
 
     // Find function to function relations with current function as subject or

Modified: trunk/apps/qubit/modules/function/templates/indexIsdfSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/function/templates/indexIsdfSuccess.php    Fri Oct 
15 18:19:44 2010        (r8176)
+++ trunk/apps/qubit/modules/function/templates/indexIsdfSuccess.php    Fri Oct 
15 18:23:09 2010        (r8177)
@@ -24,7 +24,7 @@
     <h3><?php echo __('Parallel form(s) of name') ?></h3>
     <div>
       <ul>
-        <?php foreach ($parallelNames as $item): ?>
+        <?php foreach ($this->resource->getOtherNames(array('typeId' => 
QubitTerm::PARALLEL_FORM_OF_NAME_ID)) as $item): ?>
           <li><?php echo render_value($item) ?></li>
         <?php endforeach; ?>
       </ul>
@@ -35,7 +35,7 @@
     <h3><?php echo __('Other form(s) of name') ?></h3>
     <div>
       <ul>
-        <?php foreach ($otherNames as $item): ?>
+        <?php foreach ($this->resource->getOtherNames(array('typeId' => 
QubitTerm::OTHER_FORM_OF_NAME_ID)) as $item): ?>
           <li><?php echo render_value($item) ?></li>
         <?php endforeach; ?>
       </ul>

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