"hopefull last modification of the update script for the sqlfs, everyone used it before has to go back to api version 1.5.003 and rerun it"

This commit is contained in:
Ralf Becker 2008-04-16 20:41:41 +00:00
parent ea7ea8deb6
commit 0d799b6896

View File

@ -145,7 +145,8 @@
{
$parts = explode('/',$row['vfs_directory']); // 0 = '', 1 = 'infolog', 2 = app or info_id
//$parts[1] = is_numeric($parts[2]) ? 'apps/infolog' : 'apps';
$parts[1] = $row['vfs_directory']=='/infolog' && is_numeric($row['vfs_name']) ? 'apps/infolog' : 'apps';
$parts[1] = $row['vfs_directory']=='/infolog' && is_numeric($row['vfs_name']) ||
$parts[1]=='infolog' && is_numeric($parts[2]) ? 'apps/infolog' : 'apps';
$row['vfs_directory'] = implode('/',$parts);
}
elseif ($row['vfs_directory'] == '/' && $row['vfs_name'] == 'infolog')