Fix bug where old image directory was re-scanned when changing it, instead of the new image directory

This commit is contained in:
Nathan Gray 2015-02-17 18:45:14 +00:00
parent ae0c757ea2
commit b2d1fa70d2

View File

@ -33,5 +33,8 @@ function vfs_image_dir($vfs_image_dir)
if ($vfs_image_dir != (string)$GLOBALS['egw_info']['server']['vfs_image_dir'])
{
common::delete_image_map();
// Set the global now, or the old value will get re-loaded
$GLOBALS['egw_info']['server']['vfs_image_dir'] = $vfs_image_dir;
}
}