From f3710830c4ce624f2212b19228859d091e6c7ad6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 17 Dec 2009 13:10:19 +0000 Subject: - Patch #190867 by chx: fixed access to creating path aliases. --- modules/system/system.admin.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 1d326da95..3073f62e2 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1483,8 +1483,7 @@ function system_site_information_settings_validate($form, &$form_state) { // Get the normal path of the front page. form_set_value($form['site_frontpage'], drupal_get_normal_path($form_state['values']['site_frontpage']), $form_state); // Validate front page path. - $item = array('link_path' => $form_state['values']['site_frontpage']); - if (!menu_valid_path($item)) { + if (!drupal_valid_path($form_state['values']['site_frontpage'])) { 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']))); } } -- cgit v1.2.3