Author: jablko
Date: Sun Oct 24 14:40:32 2010
New Revision: 8436

Log:
Drop intermediate variable

Modified:
   trunk/apps/qubit/modules/term/actions/indexAction.class.php
   trunk/apps/qubit/modules/term/templates/indexSuccess.php

Modified: trunk/apps/qubit/modules/term/actions/indexAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/term/actions/indexAction.class.php Sun Oct 24 
14:27:32 2010        (r8435)
+++ trunk/apps/qubit/modules/term/actions/indexAction.class.php Sun Oct 24 
14:40:32 2010        (r8436)
@@ -60,7 +60,6 @@
       }
     }
 
-    $this->scopeNotes = $this->resource->getNotesByType($options = 
array('noteTypeId' => QubitTerm::SCOPE_NOTE_ID));
     $this->sourceNotes = $this->resource->getNotesByType($options = 
array('noteTypeId' => QubitTerm::SOURCE_NOTE_ID));
     $this->displayNotes = $this->resource->getNotesByType($options = 
array('noteTypeId' => QubitTerm::DISPLAY_NOTE_ID));
 

Modified: trunk/apps/qubit/modules/term/templates/indexSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/indexSuccess.php    Sun Oct 24 
14:27:32 2010        (r8435)
+++ trunk/apps/qubit/modules/term/templates/indexSuccess.php    Sun Oct 24 
14:40:32 2010        (r8436)
@@ -20,8 +20,8 @@
   <h3><?php echo __('Scope note(s)') ?></h3>
   <div>
     <ul>
-      <?php foreach ($scopeNotes as $scopeNote): ?>
-        <li><?php echo $scopeNote->getContent(array('cultureFallback' => 
true)) ?></li>
+      <?php foreach ($resource->getNotesByType(array('noteTypeId' => 
QubitTerm::SCOPE_NOTE_ID)) as $item): ?>
+        <li><?php echo render_value($item->getContent(array('cultureFallback' 
=> true))) ?></li>
       <?php endforeach; ?>
     </ul>
   </div>

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