s4

changeset 230:67c8b9558572

Allow duplicated file names in icon.
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 24 Jun 2016 14:56:02 +0859
parents 787a577cc3ce
children 332092fa437e
files s4-funcs.sh
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Thu Jun 23 21:05:56 2016 +0859
     1.2 +++ b/s4-funcs.sh	Fri Jun 24 14:56:02 2016 +0859
     1.3 @@ -1689,13 +1689,14 @@
     1.4        | while IFS='|' read id lnk name gecos tag ownerp; do
     1.5  err name=$name owner=$ownerp lnk=$lnk
     1.6  err newlnk=$lnk
     1.7 -    files=`getvalbyid $tbl profimg $id $dir`
     1.8 +    icondir=$dir/$id
     1.9 +    files=`getvalbyid $tbl profimg $id $icondir`
    1.10      # Pick up only first icon
    1.11      echo "<div class=\"iconlist xy$thumbxy\"><p class=\"tag _$tag\">$tag</p>" \
    1.12  	| _m4 $tagconv
    1.13      if [ -n "$files" ]; then
    1.14        icon=`echo "$files"|head -1`
    1.15 -      iconhref $dir/$icon "$hrb+$lnk" "$gecos"
    1.16 +      iconhref2 $icondir/$icon "$hrb+$lnk" "$gecos"
    1.17      else
    1.18        iconhref $dir/$deficon "$hrb+$lnk" "$gecos"
    1.19      fi