summaryrefslogtreecommitdiff
path: root/includes/locale.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/locale.inc')
-rw-r--r--includes/locale.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/locale.inc b/includes/locale.inc
index fe01cbd3d..beb154ca7 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -242,6 +242,7 @@ function locale_languages_edit_form($form, &$form_state, $langcode) {
}
else {
drupal_not_found();
+ drupal_exit();
}
}
@@ -444,6 +445,7 @@ function locale_languages_delete_form($form, &$form_state, $langcode) {
if (!isset($languages[$langcode])) {
drupal_not_found();
+ drupal_exit();
}
else {
$form['langcode'] = array('#type' => 'value', '#value' => $langcode);
@@ -1695,7 +1697,7 @@ function _locale_import_po($file, $langcode, $mode, $group = NULL) {
if ($skips) {
$skip_message = format_plural($skips, 'One translation string was skipped because it contains disallowed HTML.', '@count translation strings were skipped because they contain disallowed HTML.');
drupal_set_message($skip_message);
- watchdog('locale', $skip_message, NULL, WATCHDOG_WARNING);
+ watchdog('locale', '@count disallowed HTML string(s) in %file', array('@count' => $skips, '%file' => $file->uri), WATCHDOG_WARNING);
}
return TRUE;
}