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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sun, 28 Mar 2010 19:54:12 +0000

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

Log:
Don't rename lock file & touch it into data folder instead of vcs module folder

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

Modified: web/doc-editor/trunk/php/LockFile.php
===================================================================
--- web/doc-editor/trunk/php/LockFile.php	2010-03-28 19:53:01 UTC (rev 296992)
+++ web/doc-editor/trunk/php/LockFile.php	2010-03-28 19:54:12 UTC (rev 296993)
@@ -20,11 +20,11 @@
      */
     function __construct($id)
     {
-        $appConf = AccountManager::getInstance()->appConf;
-        $project = AccountManager::getInstance()->project;
+        $am = AccountManager::getInstance();
+        $appConf = $am->appConf;

         $this->id   = $id;
-        $this->path = $appConf[$project]['vcs.path'] . '.' . preg_replace('![^0-9a-z.]!i', '', $this->id);
+        $this->path = $appConf['GLOBAL_CONFIGURATION']['data.path'] . '.' . $this->id;
     }

     /**
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.