summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-08-12 12:39:18 +0000
committerDries Buytaert <dries@buytaert.net>2009-08-12 12:39:18 +0000
commitff29c31ce5cba9f2775bf17d61823423c588d4fa (patch)
tree4ca3ae8f942a34d7065bf444e037371d1810be58 /modules
parent06fbe8e90ce3272b4879dc967b95bd6937875dc8 (diff)
downloadbrdo-ff29c31ce5cba9f2775bf17d61823423c588d4fa.tar.gz
brdo-ff29c31ce5cba9f2775bf17d61823423c588d4fa.tar.bz2
- Patch #510782 by David_Rothstein, Jody Lynn: fixed broken links.
Diffstat (limited to 'modules')
-rw-r--r--modules/node/node.module13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 40023b9af..ecc22b91a 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1986,11 +1986,14 @@ function node_page_default() {
$default_message = '<p>' . t('No front page content has been created yet.') . '</p>';
- if (user_access('access administration pages')) {
- $default_links = array (
- l(t('Create content'), 'node/add'),
- l(t('Change the default front page'), 'admin/settings/site-information'),
- );
+ $default_links = array();
+ if (_node_add_access()) {
+ $default_links[] = l(t('Create content'), 'node/add');
+ }
+ if (user_access('administer site configuration')) {
+ $default_links[] = l(t('Change the default front page'), 'admin/settings/site-information');
+ }
+ if (!empty($default_links)) {
$default_message .= theme('item_list', $default_links);
}