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

ax’s picture

Priority: Critical » Normal
Status: Needs review » Closed (won't fix)

introducing auxiliary variables doesn't fix anything - your code does (or doesnt do) the same as before.