MTrack/SCMWorkingCopy.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 6 Sep 2011 08:37:31 +0000 (16:37 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 6 Sep 2011 08:37:31 +0000 (16:37 +0800)
MTrack/SCMWorkingCopy.php

index 02f5a69..50ee72a 100644 (file)
@@ -33,12 +33,15 @@ abstract class MTrackSCMWorkingCopy {
     function __destruct()
     {
         if (strlen($this->dir) > 1) {
-            require_once 'System.php'
+            require_once 'System.php';
             System::rmdir($this->dir, '-r');
         }
     }
     function generateTempDir()
     {
+        $tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir');
+        unlink($tn);
+        return $tn;