diff --git a/field_file.inc b/field_file.inc index 2a1156ce679f8e8d598613273aeb976a316dfd21..fc3aeeeee098348bb5a197dbd6e61a48af7163fb 100644 --- a/field_file.inc +++ b/field_file.inc @@ -342,10 +342,9 @@ function field_file_check_directory(&$directory, $mode = 0, $form_item = NULL) { chmod($directory .'/.htaccess', 0664); } else { - $message = "Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your %directory directory which contains the following lines: !htaccess"; - $repl = array('%directory' => $directory, '!htaccess' => '
'. nl2br(check_plain($htaccess_lines))); - form_set_error($form_item, t($message, $repl)); - watchdog('security', $message, $repl, WATCHDOG_ERROR); + $repl = array('%directory' => $directory, '!htaccess' => nl2br(check_plain($htaccess_lines))); + form_set_error($form_item, t("Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your %directory directory which contains the following lines:
!htaccess", $repl)); + watchdog('security', "Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your %directory directory which contains the following lines:
!htaccess", $repl, WATCHDOG_ERROR); } } diff --git a/filefield.install b/filefield.install index 7c76d965a5e53f1949cab7aa76e5a850134ad6ea..d45eb7b2e86b4f0d70a103a672c67dbc96f690fc 100644 --- a/filefield.install +++ b/filefield.install @@ -237,8 +237,9 @@ function _filefield_update_6001_move_operation($field, &$context) { * Drop the list and description columns. */ function _filefield_update_6001_drop_operation($field, &$context) { + $ret = array(); $db_info = content_database_info($field); // TODO: Now that the data has been migrated we can drop the columns. - db_query('ALTER TABLE '. $db_info['table'] .' DROP COLUMN '. $db_info['columns']['description']['column']); + db_drop_field($ret, $db_info['table'], $db_info['columns']['description']['column']); $context['finished'] = 1; } diff --git a/filefield_widget.inc b/filefield_widget.inc index 0e64ba9dda4043251b1306377041a0e19f038099..097211d56e4394da81411cf02e0e74394b18e10c 100644 --- a/filefield_widget.inc +++ b/filefield_widget.inc @@ -357,7 +357,7 @@ function filefield_node_form_validate($form, &$form_state) { } } -function filefield_node_form_submit($form, $form_state) { +function filefield_node_form_submit($form, &$form_state) { // we ignore all but the save button here. if ($form_state['values']['op'] != t('Save')) { return;