From 21b20ec9b98fae15b3929cd1b6ed5deca1e832a7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 6 Sep 2011 18:13:52 +0800 Subject: [PATCH] MTrack/SCM/WorkingCopy.php --- MTrack/SCM/WorkingCopy.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MTrack/SCM/WorkingCopy.php b/MTrack/SCM/WorkingCopy.php index df9f5960..c5e052a2 100644 --- a/MTrack/SCM/WorkingCopy.php +++ b/MTrack/SCM/WorkingCopy.php @@ -32,7 +32,7 @@ abstract class MTrack_SCM_WorkingCopy { function __destruct() { if (strlen($this->dir) > 1) { - require_once 'System.php'; + $this->rmdir($this->dir); //System::rm('-r', $this->dir); } @@ -50,7 +50,7 @@ abstract class MTrack_SCM_WorkingCopy { function generateTempDir() { - $tn = '/var/lib/php5/mtrackworkingdirlEwD96a'; + /*$tn = '/var/lib/php5/mtrackworkingdirlEwD96a'; if (file_exists($tn)) { $this->rmdir($tn); } @@ -59,7 +59,7 @@ abstract class MTrack_SCM_WorkingCopy { die("OOPS"); } return $tn; - + */ $tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir'); unlink($tn); return $tn; -- 2.39.2