Here is a patch for image_get_random() function accept the second parameter ($tid) correctly.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | image-4-6-21618.patch | 1.9 KB | Robrecht Jacques |
| image.module_8.patch | 1.11 KB | recidive |
Here is a patch for image_get_random() function accept the second parameter ($tid) correctly.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | image-4-6-21618.patch | 1.9 KB | Robrecht Jacques |
| image.module_8.patch | 1.11 KB | recidive |
Comments
Comment #1
Robrecht Jacques commentedAttached is an updated patch, that also implements the same in "image_get_latest".
Optionally:
if(!is_array($tid)) $tids =array($tid); else $tids = $tid;changed DESC) and "image_page" (n.sticky DESC, n.created DESC). Is there a reason for this?Comment #2
Robrecht Jacques commentedI've tested that this works. It surely doesn't break anything (because $tid is not used).
Comment #3
walkah commentedfixed, cvs.
Comment #4
phildu commentedi found a bug...
the node add image function disapear ???
whith your patch
Comment #5
(not verified) commentedComment #6
seanrThis still needs to be fixed in 4.6
Comment #7
Robrecht Jacques commentedComment #8
drewish commentedThis version is no longer supported. If this issue is occurring with a more recent version please open a new issue.