Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_blogpdf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27113/plugins/serendipity_event_blogpdf
Modified Files:
serendipity_event_blogpdf.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_event_blogpdf.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_blogpdf/serendipity_event_blogpdf.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- serendipity_event_blogpdf.php 2 Dec 2004 10:54:59 -0000 1.12
+++ serendipity_event_blogpdf.php 2 Dec 2004 14:11:29 -0000 1.13
@@ -373,7 +373,7 @@
$this->prep_out(
$body . "\n" .
' ' . $name .
- ' ' . ON . ' ' . ucfirst(serendipity_strftime('%b %e %Y, %H:%M', $comment['timestamp']))
+ ' ' . ON . ' ' . serendipity_mb('ucfirst', serendipity_strftime('%b %e %Y, %H:%M', $comment['timestamp']))
) . "\n"
);
$this->pdf->Ln();
|