summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-31 14:41:08 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-31 14:41:08 +0000
commitaf16eb8007e9eba20c3cf4d08923a3f6a9d41bd5 (patch)
tree5df217e7b2926d8dead0fee4f5530f79c16409d2
parent07d32d052198d9804f2755428a763d8f9ffc1452 (diff)
downloadbrdo-af16eb8007e9eba20c3cf4d08923a3f6a9d41bd5.tar.gz
brdo-af16eb8007e9eba20c3cf4d08923a3f6a9d41bd5.tar.bz2
#204344 by marcingy: path aliases were not alled as default home page
-rw-r--r--modules/system/system.admin.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 96ac8c4a0..de8d8fcc2 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1176,6 +1176,11 @@ function system_site_information_settings_validate($form, &$form_state) {
}
// Validate front page path.
$item = array('link_path' => $form_state['values']['site_frontpage']);
+ $normal_path = drupal_get_normal_path($item['link_path']);
+ if ($item['link_path'] != $normal_path) {
+ drupal_set_message(t('The menu system stores system paths only, but will use the URL alias for display. %link_path has been stored as %normal_path', array('%link_path' => $item['link_path'], '%normal_path' => $normal_path)));
+ $item['link_path'] = $normal_path;
+ }
if (!empty($item) && !menu_valid_path($item)) {
form_set_error('site_frontpage', t("The path '@path' is either invalid or you do not have access to it.", array('@path' => $item['link_path'])));
}