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:47:34 +00:00
parent 37a29dd25d
commit 6b345a6bc5

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;
}
}