Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27113
Modified Files:
serendipity_admin.php
Log Message:
use mb_* functions when available. I patched all strtolower/strtoupper/strlen/strpos/strrpos/substr/ucfirst calls which are related to possible UTF-8 input.
For performance reasons, there are native calls left which don't deal with UTF8 characters.
The callback routines for mb_* functions are inside include/lang.inc.php because we need the LANG_CHARSET constant information for the function, and the function needs to be loaded everywhere. compact.inc.php is loaded before languages, so we can'T put it in there.
Index: serendipity_admin.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin.php,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- serendipity_admin.php 2 Dec 2004 12:23:08 -0000 1.50
+++ serendipity_admin.php 2 Dec 2004 14:11:25 -0000 1.51
@@ -130,7 +130,7 @@
<div class="serendipitySideBarItem">
- <div class="serendipitySideBarTitle"><?php echo ucfirst(ENTRIES); ?></div>
+ <div class="serendipitySideBarTitle"><?php echo serendipity_mb('ucfirst', ENTRIES); ?></div>
<div class="serendipitySideBarContent">
• <a href="serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=new"><?php echo NEW_ENTRY; ?></a><br />
• <a href="serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=editSelect"><?php echo EDIT_ENTRIES; ?></a><br />
|