svn: /web/doc-editor/trunk/php/ SvnClient.php
| From: | Yannick Torres | Date: | Mon, 04 Jul 2011 06:55:05 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ SvnClient.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-2094@lists.php.net to get a copy of this message | ||
yannick Mon, 04 Jul 2011 06:55:05 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312890
Log:
Fix date renderer into VCS grid
Changed paths:
U web/doc-editor/trunk/php/SvnClient.php
Modified: web/doc-editor/trunk/php/SvnClient.php
===================================================================
--- web/doc-editor/trunk/php/SvnClient.php 2011-07-04 06:48:05 UTC (rev 312889)
+++ web/doc-editor/trunk/php/SvnClient.php 2011-07-04 06:55:05 UTC (rev 312890)
@@ -409,6 +409,11 @@
$o['revision'] = str_replace('r', '', $infos[0]);
$o['author'] = $infos[1];
$o['date'] = str_replace('-', '/',
array_shift(explode(' +', $infos[2])));
+
+ if( $tmp = strstr($o['date'], " /", true) ) {
+ $o['date'] = $tmp;
+ }
+
$o['content'] = str_replace("\n", '<br/>',
trim(implode('<br/>', $contents)));
$final[] = $o;