diff s4-funcs.sh @ 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
line wrap: on
line diff
--- a/s4-funcs.sh	Thu Jun 23 21:05:56 2016 +0859
+++ b/s4-funcs.sh	Fri Jun 24 14:56:02 2016 +0859
@@ -1689,13 +1689,14 @@
       | while IFS='|' read id lnk name gecos tag ownerp; do
 err name=$name owner=$ownerp lnk=$lnk
 err newlnk=$lnk
-    files=`getvalbyid $tbl profimg $id $dir`
+    icondir=$dir/$id
+    files=`getvalbyid $tbl profimg $id $icondir`
     # Pick up only first icon
     echo "<div class=\"iconlist xy$thumbxy\"><p class=\"tag _$tag\">$tag</p>" \
 	| _m4 $tagconv
     if [ -n "$files" ]; then
       icon=`echo "$files"|head -1`
-      iconhref $dir/$icon "$hrb+$lnk" "$gecos"
+      iconhref2 $icondir/$icon "$hrb+$lnk" "$gecos"
     else
       iconhref $dir/$deficon "$hrb+$lnk" "$gecos"
     fi

yatex.org