add imdb language

This commit is contained in:
xiaomlove
2022-07-02 21:22:12 +08:00
parent 5cc25468a7
commit 9cf1cc7277
12 changed files with 85 additions and 10 deletions
+1 -2
View File
@@ -77,11 +77,10 @@ if($showrows < 1 || $showrows > 50)
$showrows = 10;
$limit .= $showrows;
$where = '';
//approval status
$approvalStatusNoneVisible = get_setting('torrent.approval_status_none_visible');
if ($approvalStatusNoneVisible == 'no' && get_user_class() < $staffmem_class) {
$where = "torrents.approval_status = " . \App\Models\Torrent::APPROVAL_STATUS_ALLOW;
$where .= ($where ? " AND " : "") . "torrents.approval_status = " . \App\Models\Torrent::APPROVAL_STATUS_ALLOW;
}
function get_where($tablename = "sources", $itemname = "source", $getname = "sou")