Author: jablko
Date: Thu Aug 27 12:54:15 2009
New Revision: 3090

Log:
Use arrays for remaining internal URIs

Modified:
   trunk/apps/qubit/modules/actor/templates/listSuccess.php
   trunk/apps/qubit/modules/repository/templates/listSuccess.php

Modified: trunk/apps/qubit/modules/actor/templates/listSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/actor/templates/listSuccess.php    Thu Aug 27 
12:48:11 2009        (r3089)
+++ trunk/apps/qubit/modules/actor/templates/listSuccess.php    Thu Aug 27 
12:54:15 2009        (r3090)
@@ -12,7 +12,7 @@
       <?php echo image_tag('down.gif', array('style' => 'padding-bottom: 
3px'), __('Sort down')) ?>
     <?php endif; ?>
     <?php if (SecurityPriviliges::editCredentials($sf_user, 'actor')): ?>
-      <span class="th-link"><?php echo link_to(__('add new'), 'actor/create') 
?></span>
+      <span class="th-link"><?php echo link_to(__('add new'), array('module' 
=> 'actor', 'action' => 'create')) ?></span>
     <?php endif; ?>
   </th><th>
     <?php if ('typeDown' == $sf_request->sort): ?>
@@ -29,7 +29,7 @@
   <td>
 
     <div>
-        <?php echo 
link_to(render_title($actor->getAuthorizedFormOfName(array('cultureFallback' => 
true))), 'actor/show?id='.$actor->getId()) ?>
+        <?php echo 
link_to(render_title($actor->getAuthorizedFormOfName(array('cultureFallback' => 
true))), array('module' => 'actor', 'action' => 'show', 'id' => 
$actor->getId())) ?>
      </div>
    </td><td>
     <?php if ($actor->getEntityTypeId()): ?>

Modified: trunk/apps/qubit/modules/repository/templates/listSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/repository/templates/listSuccess.php       Thu Aug 
27 12:48:11 2009        (r3089)
+++ trunk/apps/qubit/modules/repository/templates/listSuccess.php       Thu Aug 
27 12:54:15 2009        (r3090)
@@ -15,7 +15,7 @@
   <?php endif; ?>
 
   <?php if (SecurityPriviliges::editCredentials($sf_user, 'repository')): ?>
-  <span class="th-link"><?php echo link_to(__('add new'), 
'repository/create'); ?></span>
+  <span class="th-link"><?php echo link_to(__('add new'), array('module' => 
'repository', 'action' => 'create')); ?></span>
   <?php endif; ?>
   </th>
 
@@ -60,7 +60,7 @@
 <tr>
   <td>
   <?php $repositoryName = 
$repository->getAuthorizedFormOfName(array('cultureFallback' => true)); ?>
-    <?php echo link_to(render_title($repositoryName), 
'repository/show?id='.$repository->getId()) ?>
+    <?php echo link_to(render_title($repositoryName), array('module' => 
'repository', 'action' => 'show', 'id' => $repository->getId())) ?>
   </td>
   <td>
   <?php if ($repository->getTypeId()): ?>

--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to