Commit ff29c31c authored by Dries's avatar Dries

- Patch #510782 by David_Rothstein, Jody Lynn: fixed broken links.

parent 06fbe8e9
......@@ -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.
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment