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

[email protected] (Alexander Moskaliov)
Newsgroups php.doc.web
Message-ID <[email protected]>
irker                                    Mon, 05 Dec 2011 08:23:19 +0000

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

Log:
fix bug #60301

Bug: https://bugs.php.net/60301 (Open) Can't commit in some cases
      
Changed paths:
    U   web/doc-editor/trunk/php/File.php

Modified: web/doc-editor/trunk/php/File.php
===================================================================
--- web/doc-editor/trunk/php/File.php	2011-12-05 08:03:31 UTC (rev 320401)
+++ web/doc-editor/trunk/php/File.php	2011-12-05 08:23:19 UTC (rev 320402)
@@ -224,6 +224,11 @@
            $path = $this->path;
        }

+       $parentFolder = dirname($path);
+       if(!is_dir($parentFolder)) {
+           $this->createFolder($parentFolder);
+       }
+
        // We create this folder localy
        if( ! @mkdir($appConf['GLOBAL_CONFIGURATION']['data.path'].$appConf[$project]['vcs.module'].'-new/'.$this->lang.'/'.$path, 0777, true) ) {
            return false;
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.