Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_statistics
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24515/plugins/serendipity_event_statistics
Modified Files:
serendipity_event_statistics.php
Log Message:
Fixed Bug item #941922 - strftime %e does not work on windows
Fixed by creating serendipity_formatTime() which wraps strftime() and replaces %e if the OS is Windows
Format is cached, to avoid multiple str_replace() per page
Also added id="" to emoticons, for better styling :)
Index: serendipity_event_statistics.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_statistics/serendipity_event_statistics.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- serendipity_event_statistics.php 3 Apr 2004 17:36:17 -0000 1.5
+++ serendipity_event_statistics.php 5 May 2004 16:40:16 -0000 1.6
@@ -228,11 +228,11 @@
<div style="margin: 5px; padding: 5px">
<dl>
<dt><strong><?php echo PLUGIN_EVENT_STATISTICS_OUT_FIRST_ENTRY; ?></strong></dt>
- <dd><?php echo ucfirst(strftime(DATE_FORMAT_ENTRY . ' %H:%m', $first_entry[0])); ?></dd>
+ <dd><?php echo serndipity_formatTime(DATE_FORMAT_ENTRY . ' %H:%m', $first_entry[0]); ?></dd>
<br />
<dt><strong><?php echo PLUGIN_EVENT_STATISTICS_OUT_LAST_ENTRY; ?></strong></dt>
- <dd><?php echo ucfirst(strftime(DATE_FORMAT_ENTRY . ' %H:%m', $last_entry[0])); ?></dd>
+ <dd><?php echo serndipity_formatTime(DATE_FORMAT_ENTRY . ' %H:%m', $last_entry[0]); ?></dd>
<br />
<hr />
<br />
|