From 6957d7863d1bb0fe37f5486dea1c5bb906169926 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 21 Mar 2005 19:26:47 +0000 Subject: - Patch #19212 by chx: removed unused variables, and fixed the error reporting in form_file(). --- includes/common.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index f35db4637..cfa48aa9d 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -376,7 +376,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data = * 1 = Log errors to database. * 2 = Log errors to database and to screen. */ -function error_handler($errno, $message, $filename, $line, $variables) { +function error_handler($errno, $message, $filename, $line) { if ($errno & (E_ALL ^ E_NOTICE)) { $types = array(1 => 'error', 2 => 'warning', 4 => 'parse error', 8 => 'notice', 16 => 'core error', 32 => 'core warning', 64 => 'compile error', 128 => 'compile warning', 256 => 'user error', 512 => 'user warning', 1024 => 'user notice', 2048 => 'strict warning'); $entry = $types[$errno] .': '. $message .' in '. $filename .' on line '. $line .'.'; @@ -389,7 +389,7 @@ function error_handler($errno, $message, $filename, $line, $variables) { } } -function _fix_gpc_magic(&$item, $key) { +function _fix_gpc_magic(&$item) { if (is_array($item)) { array_walk($item, '_fix_gpc_magic'); } @@ -1352,7 +1352,7 @@ function form_select($title, $name, $value, $options, $description = NULL, $extr * provided by file.inc. */ function form_file($title, $name, $size, $description = NULL, $required = FALSE) { - return theme('form_element', $title, '\n", $description, 'edit-'. $name, $required, _form_get_error($error)); + return theme('form_element', $title, '\n", $description, 'edit-'. $name, $required, _form_get_error($name)); } /** -- cgit v1.2.3