summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-06 14:03:52 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-06 14:03:52 +0000
commitc3fcbcad679dc7621eb60fdeff67527f18caa539 (patch)
tree4402d2e2c0999411a35d4a9b0c1124b20e7cc962
parent817f9809145ad6bb09fbfbd7f1a4543095b8580c (diff)
downloadbrdo-c3fcbcad679dc7621eb60fdeff67527f18caa539.tar.gz
brdo-c3fcbcad679dc7621eb60fdeff67527f18caa539.tar.bz2
#173274 by Desbeers: treat <front> as the empty path, when adding path prefixes, so we get the proper result
-rw-r--r--includes/language.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/language.inc b/includes/language.inc
index b5c56f7d7..acf4c4607 100644
--- a/includes/language.inc
+++ b/includes/language.inc
@@ -130,7 +130,7 @@ function language_url_rewrite(&$path, &$options) {
$path = drupal_get_path_alias($path, $path_language->language);
$options['alias'] = TRUE;
}
- $path = empty($path) ? $path_language->prefix : $path_language->prefix .'/'. $path;
+ $path = (empty($path) || ($path == '<front>')) ? $path_language->prefix : $path_language->prefix .'/'. $path;
}
break;