summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-17 13:10:19 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-17 13:10:19 +0000
commitf3710830c4ce624f2212b19228859d091e6c7ad6 (patch)
tree25683c69715a00100a4a9f8fd89ad97fce85565f /modules/system/system.admin.inc
parentcaa214f17c5a9d441e6a2ac0ec129c0d6068b2cb (diff)
downloadbrdo-f3710830c4ce624f2212b19228859d091e6c7ad6.tar.gz
brdo-f3710830c4ce624f2212b19228859d091e6c7ad6.tar.bz2
- Patch #190867 by chx: fixed access to creating path aliases.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc3
1 files changed, 1 insertions, 2 deletions
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'])));
}
}