* Filemanager/Admin: ability to check virtual filesystem (Admin >> Check virtual filesystem) and some code to prefent double creation of directories

This commit is contained in:
Ralf Becker
2012-02-27 13:18:52 +00:00
parent d7a7d105fa
commit fd19c672c8
6 changed files with 408 additions and 82 deletions

View File

@ -268,7 +268,7 @@ switch($cmd)
}
die("\n/ NOT mounted with 'storage=db' --> no need to convert!\n\n");
}
$num_files = sqlfs_stream_wrapper::migrate_db2fs(); // throws exception on error
$num_files = sqlfs_utils::migrate_db2fs(); // throws exception on error
echo "\n$num_files files migrated from DB to filesystem.\n";
$new_url = preg_replace('/storage=db&?/','',$fstab['/']);
if (substr($new_url,-1) == '?') $new_url = substr($new_url,0,-1);