svn: /web/doc-editor/trunk/php/ RepositoryManager.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sat, 01 May 2010 20:06:22 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=298847

Log:
Fix path issue with new folder commit

Changed paths:
    U   web/doc-editor/trunk/php/RepositoryManager.php

Modified: web/doc-editor/trunk/php/RepositoryManager.php
===================================================================
--- web/doc-editor/trunk/php/RepositoryManager.php	2010-05-01 20:04:33 UTC (rev 298846)
+++ web/doc-editor/trunk/php/RepositoryManager.php	2010-05-01 20:06:22 UTC (rev 298847)
@@ -756,7 +756,7 @@
         // We walk trow files to find folders to commit
         for( $i=0; $i < count($files); $i++) {

-            $filePath = rtrim($files[$i]['lang'].$files[$i]['path'], "/");
+            $filePath = $files[$i]['lang'].$files[$i]['path'];

             $pathInfo = array();
             parsePath($filePath, $pathInfo);
@@ -855,7 +855,6 @@
         // We filter this folders to return only this who want to commit according of files array
         $foldersInfos = $this->getOnlyFoldersForFiles($foldersInfos, $fileInfos);

-
         if( $foldersInfos ) {
             $c = VCSFactory::getInstance()->commitFolders($foldersInfos);
             $commitLog = array_merge($commitLog, $c);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.