I get this warning when ever file log writes to a file when site_in_name is enabled.
Strict Standards: Only variables should be passed by reference in /home/devo/projects/Benevity/wpg/sites/all/modules/filelog/filelog.module on line 155

It is caused by this chunk of code, the warning is generated because array_pop takes a variable passed by reference, not just an array.

array_pop(explode('/', conf_path()))

CommentFileSizeAuthor
#2 1291638-filelog-strict-warnings.patch744 bytesAnonymous (not verified)
#1 1291638.patch744 bytesAnonymous (not verified)

Comments

Anonymous’s picture

StatusFileSize
new744 bytes

Fix for the warnings. The path is exploded into a variable that is then used with array_pop which can successfully pass it by value.

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new744 bytes

Patch with a more useful file name.

cburschka’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

(D6 is no longer maintained.)