Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12267/include
Modified Files:
lang.inc.php
Log Message:
actually I misinterpreted what ucfirst needs to be emulated for mbstring. IT doesn't lowercase all other letts, only uppercases the first and doesn't take care of all other characters and leave them as is
Index: lang.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/lang.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- lang.inc.php 10 Dec 2004 16:47:29 -0000 1.6
+++ lang.inc.php 11 Dec 2004 14:52:41 -0000 1.7
@@ -55,7 +55,7 @@
case 'ucfirst':
// there's no mb_ucfirst, so emulate it
if ($mbstring === 2) {
- return mb_strtoupper(mb_substr($args[1], 0, 1)) . mb_strtolower(mb_substr($args[1], 1));
+ return mb_strtoupper(mb_substr($args[1], 0, 1)) . mb_substr($args[1], 1);
} else {
return ucfirst($args[1]);
}
|