summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--install.php4
-rw-r--r--modules/node/node.module13
2 files changed, 11 insertions, 6 deletions
diff --git a/install.php b/install.php
index 48cc2126d..3f89b6661 100644
--- a/install.php
+++ b/install.php
@@ -1405,7 +1405,9 @@ function install_finished(&$install_state) {
$messages = drupal_set_message();
$output = '<p>' . st('Congratulations, @drupal has been successfully installed.', array('@drupal' => drupal_install_profile_name())) . '</p>';
$output .= '<p>' . (isset($messages['error']) ? st('Please review the messages above before continuing on to <a href="@url">your new site</a>.', array('@url' => url(''))) : st('You may now visit <a href="@url">your new site</a>.', array('@url' => url('')))) . '</p>';
- $output .= '<p>' . st('For more information on configuring Drupal, please refer to the <a href="@help">help section</a>.', array('@help' => url('admin/help'))) . '</p>';
+ if (module_exists('help')) {
+ $output .= '<p>' . st('For more information on configuring Drupal, please refer to the <a href="@help">help section</a>.', array('@help' => url('admin/help'))) . '</p>';
+ }
// Rebuild menu and registry to get content type links registered by the
// profile, and possibly any other menu items created through the tasks.
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);
}