diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-10-12 14:10:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-10-12 14:10:18 +0000 |
commit | b274bf87f343f84e6004401f2fc9d23ff7611c63 (patch) | |
tree | 97e4f331bbd2783780e20ff34f45ec890d070bb2 /includes | |
parent | 09e27018929d40c6f609a617b974955840b12370 (diff) | |
download | brdo-b274bf87f343f84e6004401f2fc9d23ff7611c63.tar.gz brdo-b274bf87f343f84e6004401f2fc9d23ff7611c63.tar.bz2 |
- Patch #182950: fieldset massaging for usability.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 12 | ||||
-rw-r--r-- | includes/menu.inc | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/includes/common.inc b/includes/common.inc index 9dbfbe6c5..7055fbbd4 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -98,7 +98,7 @@ function drupal_get_breadcrumb() { /** * Add output to the head tag of the HTML page. - * + * * This function can be called as long the headers aren't sent. */ function drupal_set_html_head($data = NULL) { @@ -229,7 +229,7 @@ function drupal_query_string_encode($query, $exclude = array(), $parent = '') { /** * Prepare a destination query string for use in combination with drupal_goto(). - * + * * Used to direct the user back to the referring page after completing a form. * By default the current URL is returned. If a destination exists in the * previous request, that destination is returned. As such, a destination can @@ -357,7 +357,7 @@ function drupal_not_found() { drupal_set_title(t('Page not found')); $return = ''; } - + // To conserve CPU and bandwidth, omit the blocks. print theme('page', $return, FALSE); } @@ -546,7 +546,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data = /** * Log errors as defined by administrator. - * + * * Error levels: * - 0 = Log errors to database. * - 1 = Log errors to database and to screen. @@ -762,13 +762,13 @@ function t($string, $args = array(), $langcode = NULL) { // Escaped only. $args[$key] = check_plain($value); break; - + case '%': default: // Escaped and placeholder. $args[$key] = theme('placeholder', $value); break; - + case '!': // Pass-through. } diff --git a/includes/menu.inc b/includes/menu.inc index 6d1522c5d..60c120dfe 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -586,14 +586,14 @@ function menu_tree_output($tree) { $output = ''; $items = array(); - // Pull out just the menu items we are going to render so that we + // Pull out just the menu items we are going to render so that we // get an accurate count for the first/last classes. foreach ($tree as $data) { if (!$data['link']['hidden']) { $items[] = $data; } } - + $num_items = count($items); foreach ($items as $i => $data) { $extra_class = NULL; |