Author: sevein
Date: Wed Oct 27 04:41:07 2010
New Revision: 8537
Log:
Wildcard is %currentSlug% for consistency with %currentId%.
Modified:
trunk/apps/qubit/modules/user/templates/_aclMenu.php
Modified: trunk/apps/qubit/modules/user/templates/_aclMenu.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/_aclMenu.php Wed Oct 27
04:38:38 2010 (r8536)
+++ trunk/apps/qubit/modules/user/templates/_aclMenu.php Wed Oct 27
04:41:07 2010 (r8537)
@@ -4,9 +4,9 @@
<div class="content">
<ul class="clearfix links">
- <?php foreach ($userAclMenu->getChildren() as $child): ?>
- <li<?php if (str_replace('%currentId%', $sf_request->id, $child->path)
== $sf_context->getRouting()->getCurrentInternalUri()): ?> class="active"<?php
endif; ?>><?php echo link_to($child->getLabel(array('cultureFallback' =>
true)), $child->getPath(array('getUrl' => true, 'resolveAlias' => true)))
?></li>
- <?php endforeach; ?>
+ <?php foreach ($userAclMenu->getChildren() as $item): ?>
+ <li<?php if (str_replace('%currentSlug%',
$sf_request->getAttribute('sf_route')->resource->slug, $item->path) ==
$sf_context->getRouting()->getCurrentInternalUri()): ?> class="active"<?php
endif; ?>><?php echo link_to($item->getLabel(array('cultureFallback' => true)),
$item->getPath(array('getUrl' => true, 'resolveAlias' => 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.