Closed (fixed)
Project:
Theme Editor
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2006 at 22:55 UTC
Updated:
16 Nov 2009 at 22:34 UTC
In PHP 5.05 you can't pass a function's output by reference.
Theme editor calls file_check_directory() (defined in 'includes/file.inc') with the output of file_create_path passed by reference as the first argument.
The fix requires modifying line 519 of 'modules/theme_editor/theme_editor.module from:
if (!file_check_directory(file_create_path(variable_get('theme_editor_path', 'theme_editor')), FILE_CREATE_DIRECTORY)) {
to:
if (!file_check_directory($tmp = file_create_path(variable_get('theme_editor_path', 'theme_editor')), FILE_CREATE_DIRECTORY)) {
| Comment | File | Size | Author |
|---|---|---|---|
| theme_editor.module_0.patch | 531 bytes | drupeall |
Comments
Comment #1
shane birley commented