Author: sevein
Date: Wed Oct 27 04:25:23 2010
New Revision: 8535

Log:
Update getPath() method to be aware of %currentSlug%.

Modified:
   trunk/lib/model/QubitMenu.php

Modified: trunk/lib/model/QubitMenu.php
==============================================================================
--- trunk/lib/model/QubitMenu.php       Wed Oct 27 04:24:14 2010        (r8534)
+++ trunk/lib/model/QubitMenu.php       Wed Oct 27 04:25:23 2010        (r8535)
@@ -48,7 +48,8 @@
   {
     $aliases = array(
       '%profile%' => sfContext::getInstance()->routing->generate(null, 
array('module' => 'user', 'id' => sfContext::getInstance()->user->getUserId())),
-      '%currentId%' => sfContext::getInstance()->getRequest()->id
+      '%currentId%' => sfContext::getInstance()->getRequest()->id,
+      '%currentSlug%' => 
@sfContext::getInstance()->getRequest()->getAttribute('sf_route')->resource->slug
     );
 
     $path = parent::offsetGet('path', $options);

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