このコミットが含まれているのは:
テクニカル諏訪子 2019-02-02 12:21:19 +09:00
コミット d0f57e9e40
1個のファイルの変更5行の追加7行の削除

ファイルの表示

@ -466,7 +466,7 @@ class BoardController extends Controller {
public function getForumName($id) { // /api/rpc/board/forum/getforumname/id public function getForumName($id) { // /api/rpc/board/forum/getforumname/id
return DB::table('for_forums') return DB::table('for_forums')
->select('cat_id', 'title') ->select('cat_id', 'title', 'description')
->where('id', $id) ->where('id', $id)
->orderBy('order', 'asc') ->orderBy('order', 'asc')
->get(); ->get();
@ -602,9 +602,9 @@ class BoardController extends Controller {
)); ));
return array( return array(
'tid' => $tid->tid, 'tid' => ($tid ? $tid->tid : 0),
'uid' => $tid->uid, 'uid' => ($tid ? $tid->uid : 0),
'date' => strftime('%Y/%m/%d(%a) %H:%M:%S %Z', date($tid->date)) 'date' => ($tid ? strftime('%Y/%m/%d(%a) %H:%M:%S %Z', date($tid->date)) : 'まだ')
); );
} }
@ -1431,7 +1431,7 @@ class BoardController extends Controller {
'c_name' => $catname[0]->title, 'c_name' => $catname[0]->title,
'u_name' => $showName, 'u_name' => $showName,
'u_col' => $showCol 'u_col' => $showCol
); );
} }
return $res; return $res;
@ -1439,10 +1439,8 @@ class BoardController extends Controller {
public function browseForumInfo($id, $to) { // /api/rpc/board/browse/browseforuminfo/id/to public function browseForumInfo($id, $to) { // /api/rpc/board/browse/browseforuminfo/id/to
$finfo = $this->getForum($id); $finfo = $this->getForum($id);
$cinfo = $this->getCategoryName($finfo[0]->id);
return array( return array(
'ctit' => $cinfo[0]->title,
'ftit' => $finfo[0]->title, 'ftit' => $finfo[0]->title,
'ro' => $finfo[0]->readonly, 'ro' => $finfo[0]->readonly,
'pcf' => $finfo[0]->post_count_freeze 'pcf' => $finfo[0]->post_count_freeze