Recent php versions (5.4.4 here) enable more strict checks, I am getting:
Strict warning: Only variables should be passed by reference in media_colorbox_callback() (line 14 of /home/ao2/public_html/test/sites/all/modules/contrib/media_colorbox/media_colorbox.pages.inc).
A patch is on its way to fix that.
Ciao,
Antonio
P.S. Thanks fot the great module.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 0001-Issue-1672230-by-ao2-Fix-a-Only-variables-should-be-v2.patch | 1.3 KB | ao2 |
| #1 | 0001-Issue-1672230-by-ao2-Fix-a-Only-variables-should-be-.patch | 1.3 KB | ao2 |
Comments
Comment #1
ao2 commentedPatch attached, it was made with
git format-patchplease apply it withgit amso I show up as the author in the project history.Thanks,
Antonio
Comment #2
RandalK commentedError upon patching:
Parse error: syntax error, unexpected T_PRINT in /sites/all/modules/media_colorbox/media_colorbox.pages.inc on line 15Inspecting the file shows there's a missing comma on line 14.
Looks good besides that.
Comment #3
ao2 commentedThanks @RandalK, sorry for the hiccup.
Fixed patch attached (ready for
git am, I keep mentioning that because some Drupal maintainers don't know about it...).Comment #4
RandalK commentedPretty simple fix, looks good to me.
Comment #5
greg boggsSeems to already be in the latest dev branch.