Closed (fixed)
Project:
Drupal core
Version:
4.6.3
Component:
system.module
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
10 Nov 2005 at 21:45 UTC
Updated:
10 Dec 2005 at 19:01 UTC
line 649, illegal parameter passing (the 1st param)
file_check_directory(variable_get('file_directory_path', 'files'), FILE_CREATE_DIRECTORY, 'file_directory_path');
it should look like this
$directory_path = variable_get('file_directory_path', 'files');
file_check_directory($directory_path, FILE_CREATE_DIRECTORY, 'file_directory_path');
Comments
Comment #1
drewish commentedthat seems like a strange error. what version of php are you using?
Comment #2
drewish commentedI'm dumb, I fogot that file_check_directory() takes it's first param by ref.
See also:
http://drupal.org/node/37160
http://drupal.org/node/35363#comment-63919
This bug is fixed in the CVS version:
http://cvs.drupal.org/viewcvs/drupal/drupal/modules/system.module?only_w...
Use this link if you'd like to download the file:
http://cvs.drupal.org/viewcvs/*checkout*/drupal/drupal/modules/system.mo...
Comment #3
(not verified) commented