changeset 573:9a4504aef7ac

Narrow the blog range at listblog for user's blog
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 25 Apr 2019 10:22:17 +0900
parents 95f2b54ea6d5
children e4e207222ee9
files s4-blog.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/s4-blog.sh	Wed Apr 24 12:31:28 2019 +0900
+++ b/s4-blog.sh	Thu Apr 25 10:22:17 2019 +0900
@@ -976,12 +976,12 @@
   # $1={user,group}
   qow=`sqlquote $1`
   cond="where a.id in (select id from blog_s where key='owner' and val=$qow) order by ctime desc"
-  DT_CHLD=article:blogid
   cgi_form searchart<<EOF
 <label>`cgi_text kwd`という語を含む記事をこの一覧から検索</label>
 `cgi_hidden owner $user`
 EOF
-  dumptable html blog 'ctime title heading' "$cond"
+  DT_CHLD=article:blogid DT_QOWNER=$qow \
+	 dumptable html blog 'ctime title heading' "$cond"
 )
 
 blog_addentry() {

yatex.org