comparison s4-funcs.sh @ 196:146f12edc26b

Cut too long titles within $dumpcollen chars.
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 24 Apr 2016 16:59:25 +0859
parents 40bef4883664
children ffc676bd8277
comparison
equal deleted inserted replaced
195:40bef4883664 196:146f12edc26b
1448 -D_GROUPS_="syscmd(\`cat')" \ 1448 -D_GROUPS_="syscmd(\`cat')" \
1449 $layout/html.m4.html $layout/home.m4.html 1449 $layout/html.m4.html $layout/home.m4.html
1450 1450
1451 if [ x"$user" = x"$uname" ]; then 1451 if [ x"$user" = x"$uname" ]; then
1452 # Display Most Recent Entry 1452 # Display Most Recent Entry
1453 shortval=${dumpcollen:+"substr(val, 0, $dumpcollen)"}
1454 shortval=${shortval:-val}
1453 DT_SQL="SELECT b.rowid, ctime, 1455 DT_SQL="SELECT b.rowid, ctime,
1454 (SELECT val FROM blog_s WHERE key='title' AND id=b.id) title, 1456 (SELECT $shortval FROM blog_s WHERE key='title' AND id=b.id) title,
1455 (SELECT gecos FROM gecoses 1457 (SELECT gecos FROM gecoses
1456 WHERE name=(SELECT val FROM blog_s 1458 WHERE name=(SELECT val FROM blog_s
1457 WHERE key='owner' AND id=b.id)) owner 1459 WHERE key='owner' AND id=b.id)) owner
1458 FROM blog b 1460 FROM blog b
1459 JOIN 1461 JOIN

yatex.org