diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/io.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/io.php b/inc/io.php index 9160f4718..1d458ace9 100644 --- a/inc/io.php +++ b/inc/io.php @@ -16,12 +16,12 @@ * @todo use safemode hack * @author Andreas Gohr <andi@splitbrain.org> */ -function io_sweepNS($id){ +function io_sweepNS($id,$basedir='datadir'){ global $conf; //scan all namespaces while(($id = getNS($id)) !== false){ - $dir = $conf['datadir'].'/'.utf8_encodeFN(str_replace(':','/',$id)); + $dir = $conf[$basedir].'/'.utf8_encodeFN(str_replace(':','/',$id)); //try to delete dir else return if(!@rmdir($dir)) return; |