From: timduru <ti...@ti...> - 2003-08-31 01:27:00
|
'Use image for album icon' was not working when the directory albums in the IDS dir was a symlink. It was not using the chosen image but doing a random pick The problem comes from the unless (-e "$imageForPreview") { test at line 642 of idsShared.pm it tests against a path like : ../albums/../albums//Dir/image.jpg the test works fine when albums is not a symlink, but fails when it's a symlink and so you enter the unless , provoquing a random pick. testing -e against ../albums//Dir/image.jpg with albums as a symlink works fine The patch adds 2 lines that removes ../albums from $AlbumName when $imageForPreview is provided here is the diff -u: http://ids.timduru.org/patch/ids-0.82-pbSymlink_albums and the IDS formatted patch file submission: http://ids.timduru.org/patch/ids-0.82-pbSymlink_albums.idspatch |