Author: jablko
Date: Wed Oct 13 12:08:22 2010
New Revision: 8083

Log:
Drop unused/intermediate variables

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

Modified: trunk/apps/qubit/modules/repository/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/repository/actions/editAction.class.php    Wed Oct 
13 11:11:04 2010        (r8082)
+++ trunk/apps/qubit/modules/repository/actions/editAction.class.php    Wed Oct 
13 12:08:22 2010        (r8083)
@@ -320,9 +320,6 @@
     $this->form->setValidator('country_code', new 
sfValidatorI18nChoiceCountry);
     $this->form->setWidget('country_code', new 
sfWidgetFormI18nChoiceCountry(array('add_empty' => true, 'culture' => 
$this->context->user->getCulture())));
 
-    $this->contactInformation = $this->resource->getContactInformation();
-    $this->newContactInformation = new QubitContactInformation;
-
     if ($request->isMethod('post'))
     {
       $this->form->bind($request->getPostParameters());

Modified: trunk/apps/qubit/modules/repository/actions/indexAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/repository/actions/indexAction.class.php   Wed Oct 
13 11:11:04 2010        (r8082)
+++ trunk/apps/qubit/modules/repository/actions/indexAction.class.php   Wed Oct 
13 12:08:22 2010        (r8083)
@@ -32,7 +32,5 @@
     }
 
     $this->types = 
$this->repository->getTermRelations(QubitTaxonomy::REPOSITORY_TYPE_ID);
-
-    $this->contactInformation = $this->repository->getContactInformation();
   }
 }

Modified: 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/editSuccess.php
==============================================================================
--- 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/editSuccess.php   
    Wed Oct 13 11:11:04 2010        (r8082)
+++ 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/editSuccess.php   
    Wed Oct 13 12:08:22 2010        (r8083)
@@ -49,7 +49,7 @@
 
       <h3><?php echo __('Contact information') ?> <span class="form-required" 
title="<?php echo __('This is a mandatory element.') ?>">*</span></h3>
 
-      <?php foreach ($contactInformation as $item): ?>
+      <?php foreach ($resource->contactInformations as $item): ?>
 
         <table class="inline">
           <tr>

Modified: 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php
==============================================================================
--- 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php  
    Wed Oct 13 11:11:04 2010        (r8082)
+++ 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php  
    Wed Oct 13 12:08:22 2010        (r8083)
@@ -45,7 +45,7 @@
 <div class="field">
   <h3><?php echo __('Contact information') ?></h3>
   <div class="vcard">
-    <?php foreach ($contactInformation as $item): ?>
+    <?php foreach ($resource->contactInformations as $item): ?>
       <div>
 
         <?php if (SecurityPriviliges::editCredentials($sf_user, 
'repository')): ?>

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