From 85cc06a093cee98df6fa3899cdc9aee9b4f0ded6 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 20 Nov 2023 09:19:03 +0700 Subject: [PATCH] Fixed $bb_cfg['file_id_ext'] ordering (#1134) * Fixed $bb_cfg['file_id_ext'] ordering * Fixed $bb_cfg['file_id_ext'] ordering --- CHANGELOG.md | 1 + library/config.php | 22 ++++++++++------------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba6b2925c..c5ec2cb1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ **Merged pull requests:** +- Fixed $bb_cfg['file_id_ext'] ordering [\#1134](https://github.com/torrentpier/torrentpier/pull/1134) ([belomaxorka](https://github.com/belomaxorka)) - Normalizing announce-list [\#1133](https://github.com/torrentpier/torrentpier/pull/1133) ([belomaxorka](https://github.com/belomaxorka)) - Fixed announcer-list issue [\#1129](https://github.com/torrentpier/torrentpier/pull/1129), [\#1130](https://github.com/torrentpier/torrentpier/pull/1130), [\#1131](https://github.com/torrentpier/torrentpier/pull/1131), [\#1132](https://github.com/torrentpier/torrentpier/pull/1132) ([belomaxorka](https://github.com/belomaxorka)) - Removed client column from bb_bt_tracker table [\#1128](https://github.com/torrentpier/torrentpier/pull/1128) ([belomaxorka](https://github.com/belomaxorka)) diff --git a/library/config.php b/library/config.php index 2adc68da4..6204d3433 100644 --- a/library/config.php +++ b/library/config.php @@ -543,20 +543,18 @@ $bb_cfg['sitemap_sending'] = [ // Extensions $bb_cfg['file_id_ext'] = [ - // Images 1 => 'gif', - 2 => 'jpg', - 3 => 'png', - 4 => 'bmp', - 5 => 'webp', - // Archives - 6 => 'gz', - 7 => '7z', - 8 => 'rar', + 2 => 'gz', + 3 => 'jpg', + 4 => 'png', + 5 => 'rar', + 6 => 'tar', + 7 => 'tiff', + 8 => 'torrent', 9 => 'zip', - 10 => 'tar', - // Other - 11 => 'torrent', + 10 => '7z', + 11 => 'bmp', + 12 => 'webp' ]; // Attachments