Skip to content
Snippets Groups Projects
Commit 7d644fc8 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

work around strftime character limit on parsing namespace templates FS#1366

darcs-hash:20080406174718-7ad00-89b3946e17ce49566c0f51f3194776a0bdb4768d.gz
parent 354bc991
No related branches found
No related tags found
No related merge requests found
......@@ -738,7 +738,9 @@ function pageTemplate($data){
$tpl = str_replace('@NAME@',$INFO['userinfo']['name'],$tpl);
$tpl = str_replace('@MAIL@',$INFO['userinfo']['mail'],$tpl);
$tpl = str_replace('@DATE@',$conf['dformat'],$tpl);
$tpl = strftime($tpl);
// we need the callback to work around strftime's char limit
$tpl = preg_replace_callback('/%./',create_function('$m','return strftime($m[0]);'),$tpl);
return $tpl;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment