Closed (fixed)
Project:
@font-your-face
Version:
7.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Feb 2011 at 15:25 UTC
Updated:
6 Mar 2011 at 18:11 UTC
Jump to comment: Most recent file
Kept getting the warning with beta3.
Strict warning: Only variables should be passed by reference in fontyourface_preprocess_page() (line 511 of /opt/development/emckenna/opic/sites/all/modules/contrib/fontyourface/fontyourface.module).
line in question is here:
if (file_prepare_directory(dirname($destination), FILE_CREATE_DIRECTORY)) {
...
Patch will first assigns a variable the output of dirname() and uses the variable in the function.
see http://the-stickman.com/web-development/php/php-505-fatal-error-only-var... for more info on the warning.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | fontyourface-1065928.patch | 710 bytes | emackn |
Comments
Comment #1
emackn commentedHere's the patch.
Comment #3
sreynen commentedThanks. Must be a bug in the test bot; the patch doesn't actually cause a fatal error. This is committed to dev. The Font Squirrel provider module had the same problem, so I fixed it there too.