Commit b4534e89 authored by Dries's avatar Dries

- Patch #263445 by Dave Reid, merlinofchaos: replace improper use of...

- Patch #263445 by Dave Reid, merlinofchaos: replace improper use of drupal_to_js() with drupal_json().
parent 63e195eb
......@@ -401,6 +401,5 @@ function profile_admin_settings_autocomplete($string) {
while ($data = db_fetch_object($result)) {
$matches[$data->category] = check_plain($data->category);
}
print drupal_to_js($matches);
exit();
drupal_json($matches);
}
......@@ -1717,8 +1717,7 @@ function system_date_time_settings_submit($form, &$form_state) {
*/
function system_date_time_lookup() {
$result = format_date(REQUEST_TIME, 'custom', $_GET['format']);
echo drupal_to_js($result);
exit;
drupal_json($result);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment