Closed (fixed)
Project:
Date
Version:
6.x-2.x-dev
Component:
Date API
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
10 Feb 2012 at 15:55 UTC
Updated:
18 May 2012 at 15:39 UTC
Jump to comment: Most recent file
In line 866 of the date_api.module we are passing an array directly to a function that requires a variable passed by reference, not a naked array.
We need to change this:
$max_granularity = end(date_granularity_sorted($granularity));
to this
$sorted_granularity = date_granularity_sorted($granularity)
$max_granularity = end($sorted_granularity);
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | pass_array_as_variable-1436000-3.patch | 669 bytes | apotek |
| #1 | pass_array_as_variable-1436000-2.patch | 645 bytes | apotek |
Comments
Comment #1
apotek commentedAnd here's the patch that will do it.woops. Worked a bit too fast there. submitting a new patch.
Comment #2
apotek commentedHere's the correct version.
Comment #3
karens commentedI'm not sure where it got added, but this change is already in the dev code now.
I'm guessing it came from you, but I don't remember exactly what happened :)
Thanks!
Comment #5
apotek commentedThanks KarenS, I'm not sure how that happened either. Seems like I still haven't figured out how to make a patch that gets credited to me :-) . Hope all is well with you.