Author: jablko
Date: Thu Oct 14 16:44:21 2010
New Revision: 8145

Log:
Drop intermediate variable

Modified:
   trunk/apps/qubit/modules/repository/actions/indexAction.class.php
   
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php

Modified: trunk/apps/qubit/modules/repository/actions/indexAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/repository/actions/indexAction.class.php   Thu Oct 
14 16:43:00 2010        (r8144)
+++ trunk/apps/qubit/modules/repository/actions/indexAction.class.php   Thu Oct 
14 16:44:21 2010        (r8145)
@@ -22,7 +22,5 @@
   public function execute($request)
   {
     $this->resource = $this->getRoute()->resource;
-
-    $this->types = 
$this->resource->getTermRelations(QubitTaxonomy::REPOSITORY_TYPE_ID);
   }
 }

Modified: 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php
==============================================================================
--- 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php  
    Thu Oct 14 16:43:00 2010        (r8144)
+++ 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php  
    Thu Oct 14 16:44:21 2010        (r8145)
@@ -38,7 +38,7 @@
   </div>
 </div>
 
-<?php foreach ($types as $type): ?>
+<?php foreach ($resource->getTermRelations(QubitTaxonomy::REPOSITORY_TYPE_ID) 
as $type): ?>
   <?php echo render_show(__('Type'), render_value($type->term)) ?>
 <?php endforeach; ?>
 

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