Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2007 at 16:35 UTC
Updated:
24 Sep 2007 at 12:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
chx commentedthis prints
barso I think the use ofnextmight not result in what we want.eachcould be, but then you need tolistas well. I am fairly sure that this pair of functions is still (much) faster though.Comment #2
pwolanin commentedAh, yes - stupid of me. I was confused by the PHP doc that says it works like current().
Comment #3
pwolanin commentedhow about this instead?
Comment #4
chx commentedAnd what do you think of this version?
Comment #5
pwolanin commentedlooks pretty good - though we don't even need the $key in the foreach
Comment #6
owahab commentedI think the existence of $key is good for readability.
Yet the code is RTBC IMHO.
Comment #7
gábor hojtsyLooks ok, committed.
Comment #8
(not verified) commented