$variables['content'].='<p>'.st('Please check the error messages and <a href="!url">try again</a>.',array('!url'=>request_uri())).'</p>';
}
// Special handling of warning messages
if(isset($messages['warning'])){
$title=count($messages['warning'])>1?st('The following installation warnings should be carefully reviewed'):st('The following installation warning should be carefully reviewed');
@@ -1771,14 +1771,14 @@ function theme_comment_thread_expanded($comment, $node) {
functiontheme_comment_post_forbidden($node){
global$user;
static$authenticated_post_comments;
if(!$user->uid){
if(!isset($authenticated_post_comments)){
// We only output any link if we are certain, that users get permission
// to post comments by logging in. We also locally cache this information.
$authenticated_post_comments=array_key_exists(DRUPAL_AUTHENTICATED_RID,user_roles(TRUE,'post comments')+user_roles(TRUE,'post comments without approval'));
}
if($authenticated_post_comments){
// We cannot use drupal_get_destination() because these links
// sometimes appear on /node and taxonomy listing pages.
db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')",'navigation',$t('Navigation'),$t('The navigation menu is provided by Drupal and is the main interactive menu for any site. It is usually the only menu that contains personalized links for authenticated users, and is often not even visible to anonymous users.'));
db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')",'primary-links',$t('Primary links'),$t('Primary links are often used at the theme layer to show the major sections of a site. A typical representation for primary links would be tabs along the top.'));