summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2007-12-23 15:32:36 (GMT)
committerGábor Hojtsy2007-12-23 15:32:36 (GMT)
commit5d71254605b2009a11da7b11b5c439da2345d453 (patch)
treea74a805b8121e928d56c6ec74f9a7d6c86941542
parent602cb01718953b894ec79ce2384d2794403ac986 (diff)
#154517 follow up by Desbeers: path_form_alter() was not path alias language aware
-rw-r--r--modules/path/path.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/path/path.module b/modules/path/path.module
index 6be5d81..273f329 100644
--- a/modules/path/path.module
+++ b/modules/path/path.module
@@ -195,7 +195,7 @@ function path_form_alter(&$form, $form_state, $form_id) {
if ($path) {
$form['path']['pid'] = array(
'#type' => 'value',
- '#value' => db_result(db_query("SELECT pid FROM {url_alias} WHERE dst = '%s'", $path))
+ '#value' => db_result(db_query("SELECT pid FROM {url_alias} WHERE dst = '%s' AND language = '%s'", $path, $form['#node']->language))
);
}
}