summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-06 20:15:32 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-06 20:15:32 +0000
commit9bbdb71ee4ccc1cf5433d8c21c8d96f668f81d2b (patch)
treecfdc8bbe28cf0bf27b269e743c263c9cb560083f /includes
parentf037130086076c5f652ca298f4c859f9f4d9fb6c (diff)
downloadbrdo-9bbdb71ee4ccc1cf5433d8c21c8d96f668f81d2b.tar.gz
brdo-9bbdb71ee4ccc1cf5433d8c21c8d96f668f81d2b.tar.bz2
- Patch #9330: ucfirst() gives problem when used with multibyte charset.
Replaced the use of ucfirst() with a CSS-based solution.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc2
-rw-r--r--includes/menu.inc2
-rw-r--r--includes/theme.inc4
3 files changed, 4 insertions, 4 deletions
diff --git a/includes/common.inc b/includes/common.inc
index f12a6d191..90fe08559 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -19,7 +19,7 @@ function drupal_set_title($title = NULL) {
static $stored_title;
if (isset($title)) {
- $stored_title = ucfirst($title);
+ $stored_title = $title;
}
return $stored_title;
}
diff --git a/includes/menu.inc b/includes/menu.inc
index ca7a1e3fb..d1aa3372c 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -404,7 +404,7 @@ function menu_get_active_title() {
$menu = menu_get_menu();
if ($mid = menu_get_active_nontask_item()) {
- return ucfirst($menu['items'][$mid]['title']);
+ return $menu['items'][$mid]['title'];
}
}
diff --git a/includes/theme.inc b/includes/theme.inc
index 60f9dfe43..36181fac0 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -204,12 +204,12 @@ function theme_status_messages() {
if (count($messages) > 1) {
$output .= " <ul>\n";
foreach($messages as $message) {
- $output .= ' <li>'. ucfirst($message) ."</li>\n";
+ $output .= ' <li>'. $message ."</li>\n";
}
$output .= " </ul>\n";
}
else {
- $output .= ucfirst($messages[0]);
+ $output .= $messages[0];
}
$output .= "</div>\n";
}