Author: jablko
Date: Sun Oct 24 14:44:13 2010
New Revision: 8437
Log:
Drop intermediate variables
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:40:32 2010 (r8436)
+++ trunk/apps/qubit/modules/term/actions/indexAction.class.php Sun Oct 24
14:44:13 2010 (r8437)
@@ -60,9 +60,6 @@
}
}
- $this->sourceNotes = $this->resource->getNotesByType($options =
array('noteTypeId' => QubitTerm::SOURCE_NOTE_ID));
- $this->displayNotes = $this->resource->getNotesByType($options =
array('noteTypeId' => QubitTerm::DISPLAY_NOTE_ID));
-
$this->children = $this->resource->getChildren(array('sortBy' => 'name'));
$this->associateRelations =
QubitRelation::getBySubjectOrObjectId($this->resource->id, array('typeId' =>
QubitTerm::TERM_RELATION_ASSOCIATIVE_ID));
Modified: trunk/apps/qubit/modules/term/templates/indexSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/indexSuccess.php Sun Oct 24
14:40:32 2010 (r8436)
+++ trunk/apps/qubit/modules/term/templates/indexSuccess.php Sun Oct 24
14:44:13 2010 (r8437)
@@ -31,8 +31,8 @@
<h3><?php echo __('Source note(s)') ?></h3>
<div>
<ul>
- <?php foreach ($sourceNotes as $sourceNote): ?>
- <li><?php echo $sourceNote->getContent(array('cultureFallback' =>
true)) ?></li>
+ <?php foreach ($resource->getNotesByType(array('noteTypeId' =>
QubitTerm::SOURCE_NOTE_ID)) as $item): ?>
+ <li><?php echo $item->getContent(array('cultureFallback' => true))
?></li>
<?php endforeach; ?>
</ul>
</div>
@@ -42,8 +42,8 @@
<h3><?php echo __('Display note(s)') ?></h3>
<div>
<ul>
- <?php foreach ($displayNotes as $displayNote): ?>
- <li><?php echo $displayNote->getContent(array('cultureFallback' =>
true)) ?></li>
+ <?php foreach ($resource->getNotesByType(array('noteTypeId' =>
QubitTerm::DISPLAY_NOTE_ID)) as $item): ?>
+ <li><?php echo $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.