直した
このコミットが含まれているのは:
コミット
d0f57e9e40
|
@ -466,7 +466,7 @@ class BoardController extends Controller {
|
|||
|
||||
public function getForumName($id) { // /api/rpc/board/forum/getforumname/id
|
||||
return DB::table('for_forums')
|
||||
->select('cat_id', 'title')
|
||||
->select('cat_id', 'title', 'description')
|
||||
->where('id', $id)
|
||||
->orderBy('order', 'asc')
|
||||
->get();
|
||||
|
@ -602,9 +602,9 @@ class BoardController extends Controller {
|
|||
));
|
||||
|
||||
return array(
|
||||
'tid' => $tid->tid,
|
||||
'uid' => $tid->uid,
|
||||
'date' => strftime('%Y/%m/%d(%a) %H:%M:%S %Z', date($tid->date))
|
||||
'tid' => ($tid ? $tid->tid : 0),
|
||||
'uid' => ($tid ? $tid->uid : 0),
|
||||
'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,
|
||||
'u_name' => $showName,
|
||||
'u_col' => $showCol
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
return $res;
|
||||
|
@ -1439,10 +1439,8 @@ class BoardController extends Controller {
|
|||
|
||||
public function browseForumInfo($id, $to) { // /api/rpc/board/browse/browseforuminfo/id/to
|
||||
$finfo = $this->getForum($id);
|
||||
$cinfo = $this->getCategoryName($finfo[0]->id);
|
||||
|
||||
return array(
|
||||
'ctit' => $cinfo[0]->title,
|
||||
'ftit' => $finfo[0]->title,
|
||||
'ro' => $finfo[0]->readonly,
|
||||
'pcf' => $finfo[0]->post_count_freeze
|
||||
|
|
新しいイシューから参照