From ef33d44f66202a8d558fbefcb9346ed5752f92c4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 21 Sep 2009 07:56:09 +0000 Subject: - Patch #556018 by Damien Tournoud, dereine | sun: rename drupal_to_js() and drupal_json() for consistency and readability. --- modules/upload/upload.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/upload') diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 055e0cd91..e4451c3aa 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -644,7 +644,7 @@ function upload_js() { if (!($cached_form = form_get_cache($_POST['form_build_id'], $cached_form_state)) || !isset($cached_form['#node']) || !isset($cached_form['attachments'])) { form_set_error('form_token', t('Validation error, please try again. If this error persists, please contact the site administrator.')); $output = theme('status_messages'); - print drupal_to_js(array('status' => TRUE, 'data' => $output)); + print drupal_json_encode(array('status' => TRUE, 'data' => $output)); exit(); } -- cgit v1.2.3