mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Fixed extensions issue (#1218)
* Fixed extensions issue * Update CHANGELOG.md
This commit is contained in:
parent
0e7a60ad41
commit
6660bf26e4
4 changed files with 15 additions and 13 deletions
|
@ -11,16 +11,11 @@ if (!defined('BB_ROOT')) {
|
|||
die(basename(__FILE__));
|
||||
}
|
||||
|
||||
// Don't count on forbidden extensions table, because it is not allowed to allow forbidden extensions at all
|
||||
$extensions = DB()->fetch_rowset("
|
||||
SELECT
|
||||
e.extension, g.cat_id, g.download_mode, g.upload_icon
|
||||
FROM
|
||||
" . BB_EXTENSIONS . " e,
|
||||
" . BB_EXTENSION_GROUPS . " g
|
||||
WHERE
|
||||
e.group_id = g.group_id
|
||||
AND g.allow_group = 1
|
||||
SELECT e.extension, g.cat_id, g.download_mode, g.upload_icon, g.allow_group FROM
|
||||
" . BB_EXTENSIONS . " e,
|
||||
" . BB_EXTENSION_GROUPS . " g
|
||||
WHERE e.group_id = g.group_id
|
||||
");
|
||||
|
||||
$this->store('attach_extensions', $extensions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue