diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-25 09:04:22 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-25 09:04:22 +0000 |
commit | 205f8ff01bbbbf010a5bee4734cc169e67d8d452 (patch) | |
tree | 9393543b303f509427ee4debecd8c9d1f9e9bb3e | |
parent | b86df33b8cd670fd230f2e13cc0a8098de449eb7 (diff) | |
download | brdo-205f8ff01bbbbf010a5bee4734cc169e67d8d452.tar.gz brdo-205f8ff01bbbbf010a5bee4734cc169e67d8d452.tar.bz2 |
#97941 by webchick. Consistent defaults for 'site_name' variable.
-rw-r--r-- | includes/common.inc | 2 | ||||
-rw-r--r-- | modules/aggregator/aggregator.module | 2 | ||||
-rw-r--r-- | modules/drupal/drupal.module | 2 | ||||
-rw-r--r-- | modules/system/system.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 6 | ||||
-rw-r--r-- | themes/chameleon/chameleon.theme | 2 | ||||
-rw-r--r-- | themes/engines/phptemplate/phptemplate.engine | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/includes/common.inc b/includes/common.inc index cf296fddb..e516f86b5 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -313,7 +313,7 @@ function drupal_site_offline() { drupal_set_header('HTTP/1.0 503 Service unavailable'); drupal_set_title(t('Site off-line')); print theme('maintenance_page', filter_xss_admin(variable_get('site_offline_message', - t('@site is currently under maintenance. We should be back shortly. Thank you for your patience.', array('@site' => variable_get('site_name', t('This Drupal site'))))))); + t('@site is currently under maintenance. We should be back shortly. Thank you for your patience.', array('@site' => variable_get('site_name', 'Drupal')))))); } /** diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index ccaf7909b..e8396558d 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -1212,7 +1212,7 @@ function aggregator_page_rss() { $output .= "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; $output .= "<rss version=\"2.0\">\n"; - $output .= format_rss_channel(variable_get('site_name', t('Drupal')) . ' ' . t('aggregator'), url('aggregator' . $url, NULL, NULL, TRUE), variable_get('site_name', t('Drupal')) . ' - ' . t('aggregated feeds') . $title, $items, 'en'); + $output .= format_rss_channel(variable_get('site_name', 'Drupal') . ' ' . t('aggregator'), url('aggregator' . $url, NULL, NULL, TRUE), variable_get('site_name', 'Drupal') . ' - ' . t('aggregated feeds') . $title, $items, 'en'); $output .= "</rss>\n"; drupal_set_header('Content-Type: application/rss+xml; charset=utf-8'); diff --git a/modules/drupal/drupal.module b/modules/drupal/drupal.module index f41119abb..dbc6529b1 100644 --- a/modules/drupal/drupal.module +++ b/modules/drupal/drupal.module @@ -41,7 +41,7 @@ print drupal_client_page(); return t('<p>Using this your site can "call home" to another Drupal server. By calling home to drupal.org and sending a list of your installed modules and themes, you help rank projects on drupal.org and so assist all Drupal administrators to find the best components for meeting their needs. If you want to register with a different server, you can change the Drupal XML-RPC server setting -- but the server has to be able to handle Drupal XML. Some XML-RPC servers may present directories of all registered sites. To get all your site information listed, go to the <a href="@site-settings">site information settings page</a> and set the site name, the e-mail address, the slogan, and the mission statement.</p>', array('@site-settings' => url('admin/settings/site-information'))); case 'user/help#drupal': return variable_get('drupal_authentication_service', 0) ? t('<p><a href="@Drupal">Drupal</a> is the name of the software that powers %this-site. There are Drupal websites all over the world, and many of them share their registration databases so that users may freely log in to any Drupal site using a single <strong>Drupal ID</strong>.</p> -<p>So please feel free to log in to your account here at %this-site with a username from another Drupal site. The format of a Drupal ID is similar to an e-mail address: <strong>username</strong>@<em>server</em>. An example of a valid Drupal ID is <strong>mwlily</strong>@<em>drupal.org</em>.</p>', array('@Drupal' => 'http://drupal.org', '%this-site' => variable_get('site_name', 'this website'))) : ''; +<p>So please feel free to log in to your account here at %this-site with a username from another Drupal site. The format of a Drupal ID is similar to an e-mail address: <strong>username</strong>@<em>server</em>. An example of a valid Drupal ID is <strong>mwlily</strong>@<em>drupal.org</em>.</p>', array('@Drupal' => 'http://drupal.org', '%this-site' => variable_get('site_name', 'Drupal'))) : ''; } } diff --git a/modules/system/system.module b/modules/system/system.module index 4665ee86f..86fc004bc 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -838,7 +838,7 @@ function system_site_maintenance_settings() { $form['site_offline_message'] = array( '#type' => 'textarea', '#title' => t('Site off-line message'), - '#default_value' => variable_get('site_offline_message', t('@site is currently under maintenance. We should be back shortly. Thank you for your patience.', array('@site' => variable_get('site_name', t('This Drupal site'))))), + '#default_value' => variable_get('site_offline_message', t('@site is currently under maintenance. We should be back shortly. Thank you for your patience.', array('@site' => variable_get('site_name', 'Drupal')))), '#description' => t('Message to show visitors when the site is in off-line mode.') ); diff --git a/modules/user/user.module b/modules/user/user.module index 3095d75aa..470737600 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -897,10 +897,10 @@ function user_login($msg = '') { '#attributes' => array('tabindex' => '1'), ); if (variable_get('drupal_authentication_service', FALSE) && count(user_auth_help_links()) > 0) { - $form['name']['#description'] = t('Enter your @s username, or an ID from one of our affiliates: !a.', array('@s' => variable_get('site_name', 'local'), '!a' => implode(', ', user_auth_help_links()))); + $form['name']['#description'] = t('Enter your @s username, or an ID from one of our affiliates: !a.', array('@s' => variable_get('site_name', 'Drupal'), '!a' => implode(', ', user_auth_help_links()))); } else { - $form['name']['#description'] = t('Enter your @s username.', array('@s' => variable_get('site_name', 'local'))); + $form['name']['#description'] = t('Enter your @s username.', array('@s' => variable_get('site_name', 'Drupal'))); } $form['pass'] = array('#type' => 'password', '#title' => t('Password'), @@ -2331,7 +2331,7 @@ function user_help($section) { case 'admin/user/search': return t('<p>Enter a simple pattern ("*" may be used as a wildcard match) to search for a username. For example, one may search for "br" and Drupal might return "brian", "brad", and "brenda".</p>'); case 'user/help#user': - $site = variable_get('site_name', 'this website'); + $site = variable_get('site_name', 'Drupal'); $affiliates = user_auth_help_links(); if (count($affiliates)) { diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme index 12100e0bf..65e159ac8 100644 --- a/themes/chameleon/chameleon.theme +++ b/themes/chameleon/chameleon.theme @@ -35,7 +35,7 @@ function chameleon_page($content, $show_blocks = TRUE) { $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"; $output .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"$language\" xml:lang=\"$language\">\n"; $output .= "<head>\n"; - $output .= " <title>". ($title ? strip_tags($title) ." | ". variable_get("site_name", "Drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", "")) ."</title>\n"; + $output .= " <title>". ($title ? strip_tags($title) ." | ". variable_get("site_name", "Drupal") : variable_get("site_name", "Drupal") ." | ". variable_get("site_slogan", "")) ."</title>\n"; $output .= drupal_get_html_head(); $output .= drupal_get_css(); $output .= drupal_get_js(); diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine index b3d8843ef..823239633 100644 --- a/themes/engines/phptemplate/phptemplate.engine +++ b/themes/engines/phptemplate/phptemplate.engine @@ -189,7 +189,7 @@ function phptemplate_page($content, $show_blocks = TRUE) { $head_title = array(strip_tags(drupal_get_title()), variable_get('site_name', 'Drupal')); } else { - $head_title = array(variable_get('site_name', 'drupal')); + $head_title = array(variable_get('site_name', 'Drupal')); if (variable_get('site_slogan', '')) { $head_title[] = variable_get('site_slogan', ''); } |