diff options
author | David Rothstein <drothstein@gmail.com> | 2012-10-28 23:12:12 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-10-28 23:12:12 -0400 |
commit | 160e454224fdd1dd2492cc0c29238143bfc1984e (patch) | |
tree | 81e9589d53dc3c9cafbf0e3303b5132306f72e1c /modules/shortcut/shortcut.module | |
parent | a6d4a9199115922a614002e7423e3ffc5102b107 (diff) | |
download | brdo-160e454224fdd1dd2492cc0c29238143bfc1984e.tar.gz brdo-160e454224fdd1dd2492cc0c29238143bfc1984e.tar.bz2 |
Issue #934714 by swentel, caiovlp, dcam | Coornail: Fixed Cannot add frontpage as shortcut.
Diffstat (limited to 'modules/shortcut/shortcut.module')
-rw-r--r-- | modules/shortcut/shortcut.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/shortcut/shortcut.module b/modules/shortcut/shortcut.module index 71284bb84..2f6db0ad3 100644 --- a/modules/shortcut/shortcut.module +++ b/modules/shortcut/shortcut.module @@ -617,8 +617,8 @@ function shortcut_valid_link($path) { if ($path != $normal_path) { $path = $normal_path; } - // Only accept links that correspond to valid paths on the site itself. - return !url_is_external($path) && menu_get_item($path); + // An empty path is valid too and will be converted to <front>. + return (!url_is_external($path) && menu_get_item($path)) || empty($path) || $path == '<front>'; } /** |