From: x99bachelart Date: Tue, 23 Sep 2003 19:13:09 +0000 (+0000) Subject: path bugfix X-Git-Tag: 1.8~403 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=3375fe75ac8b0fcd4b5265c9f59ad056e82cc387;p=banana.git path bugfix --- diff --git a/include/spool.inc.php b/include/spool.inc.php index 7201164..d16b8c8 100644 --- a/include/spool.inc.php +++ b/include/spool.inc.php @@ -241,6 +241,7 @@ class spool { $ids = array_flip($this->ids); unset($ids[$_id]); $this->ids = array_flip($ids); + $prefix_path=(preg_match("/\/scripts\/?$/",getcwd())?"..":"."); $f = fopen("$prefix_path/spool/spool-{$this->group}.dat","w"); fputs($f,serialize($this)); fclose($f);