|
@@ -83,9 +83,9 @@ class Content
|
|
return $info;
|
|
return $info;
|
|
}
|
|
}
|
|
$info['content'] = htmlspecialchars_decode($info['content']);
|
|
$info['content'] = htmlspecialchars_decode($info['content']);
|
|
- $info['media'] = Dever::db('psource/content_media')->select(['content_id' => $info['id']], ['col' => 'id,name as title,file as url']);
|
|
|
|
- $info['data'] = Dever::db('psource/content_data')->select(['content_id' => $info['id']], ['col' => 'id,name,file']);
|
|
|
|
- $info['link'] = Dever::db('psource/content_link')->select(['content_id' => $info['id']], ['col' => 'id,name,link']);
|
|
|
|
|
|
+ $info['media'] = Dever::db('psource/content_media')->select(['content_id' => $info['id'], 'status' => 1], ['col' => 'id,name as title,file as url']);
|
|
|
|
+ $info['data'] = Dever::db('psource/content_data')->select(['content_id' => $info['id'], 'status' => 1], ['col' => 'id,name,file']);
|
|
|
|
+ $info['link'] = Dever::db('psource/content_link')->select(['content_id' => $info['id'], 'status' => 1], ['col' => 'id,name,link']);
|
|
return $info;
|
|
return $info;
|
|
}
|
|
}
|
|
|
|
|