From be14203534c5f09d0c70c2bf59b81b80f2a90b32 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Thu, 31 Mar 2005 09:25:33 +0000 Subject: - #18817: Clean up plain-text checking (see drupal-devel!) --- modules/path/path.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/path/path.module') diff --git a/modules/path/path.module b/modules/path/path.module index e48589c05..ba2251490 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -296,15 +296,15 @@ function path_save($edit) { $pid = $edit['pid']; if (!valid_url($src)) { - form_set_error('src', t('The system path %path is invalid.', array('%path' => "$src"))); + form_set_error('src', t('The system path %path is invalid.', array('%path' => theme('placeholder', $src)))); } if (!valid_url($dst)) { - form_set_error('dst', t('The alias %alias is invalid.', array('%alias' => "$dst"))); + form_set_error('dst', t('The alias %alias is invalid.', array('%alias' => theme('placeholder', $dst)))); } if (db_result(db_query("SELECT COUNT(dst) FROM {url_alias} WHERE pid != %d AND dst = '%s'", $pid, $dst))) { - form_set_error('dst', t('The alias %alias is already in use.', array('%alias' => "$dst"))); + form_set_error('dst', t('The alias %alias is already in use.', array('%alias' => theme('placeholder', $dst)))); } if (form_get_errors()) { -- cgit v1.2.3