Closed (won't fix)
Project:
Theme Editor
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Feb 2006 at 15:23 UTC
Updated:
22 Oct 2007 at 20:19 UTC
in theme_editor.module at line 530 there is a php5-noncompliant code.
it hass to be patched from:
function _theme_editor_check_dir() {
if (!file_check_directory(file_create_path(variable_get('theme_editor_path', 'theme_editor')), FILE_CREATE_DIRECTORY)) {
return t('The theme storage directory does not exist or is not writable.');
}
}
to this correct code:
function _theme_editor_check_dir() {
$tepath = variable_get('theme_editor_path', 'theme_editor');
$tepath2 = file_create_path($tepath);
if (!file_check_directory($tepath2, FILE_CREATE_DIRECTORY)) {
return t('The theme storage directory does not exist or is not writable.');
}
}
hope this helps
Comments
Comment #1
ax commentedintroducing auxiliary variables doesn't fix anything - your code does (or doesnt do) the same as before.