[dokuwiki] Little bug in Include Plugins
- From: "JEAN MARC MASSOU" <massou@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 20 May 2008 22:42:20 +0200
Hi to the list.
I have discover a little bug on include plugins :
I think this is related to strftime function.
I don't know who maintain this code right know it is why i rapport here...
here all the description in html :
http://massou.tk/jmwiki/doku.php?id=blogw:include_plugins_little_bug
Include plugins little bug
There is a little bug in the Include plugins helper.php file line 545 :
if ($this->getConf('showdate')){
$date = ($page['date'] ? $page['date'] : $meta['date']['created']);
if ($date)
$ret[] = '<abbr class="published" title="'.strftime
<http://www.php.net/strftime>('%Y-%m-%d_T_%H:%M:%S', $date).'">'.
strftime <http://www.php.net/strftime>($conf['dformat'], $date).
'</abbr>';
}
<http://massou.tk/jmwiki/lib/exe/detail.php?id=blogw%3Ainclude_plugins_little_bug&cache=cache&media=blogw:buginclude.gif>
I don't know why but the strftime() function don't want to use well the
$conf['dformat'], and just give it in output as a blank date…
I wrote this little fix … no time to investigate further…
the fix :
if ($this->getConf('showdate')){
$date = ($page['date'] ? $page['date'] : $meta['date']['created']);
if ($date)
$ret[] = '<abbr class="published" title="'.strftime
<http://www.php.net/strftime>('%Y-%m-%d_T_%H:%M:%S', $date).'">'.
//strftime($conf['dformat'], $date).
strftime <http://www.php.net/strftime>('%Y-%m-%d_T_%H:%M:%S', $date).
'</abbr>';
}
Cordially
JMM
- Follow-Ups:
- [dokuwiki] Re: Little bug in Include Plugins
- From: Michael Klier
Other related posts:
- » [dokuwiki] Little bug in Include Plugins
- » [dokuwiki] Re: Little bug in Include Plugins
- [dokuwiki] Re: Little bug in Include Plugins
- From: Michael Klier