mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
parent
e5198f3092
commit
e4558a7807
@ -7,7 +7,7 @@
|
||||
|
||||
- Release v2.1.5-2023.09 🎉
|
||||
- Fixed cache directory auto-creating with SQLite [\#247](https://github.com/torrentpier/torrentpier-lts/pull/247) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#245](https://github.com/torrentpier/torrentpier-lts/pull/245), [\#246](https://github.com/torrentpier/torrentpier-lts/pull/246), [\#248](https://github.com/torrentpier/torrentpier-lts/pull/248), [\#249](https://github.com/torrentpier/torrentpier-lts/pull/249) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#245](https://github.com/torrentpier/torrentpier-lts/pull/245), [\#246](https://github.com/torrentpier/torrentpier-lts/pull/246), [\#248](https://github.com/torrentpier/torrentpier-lts/pull/248), [\#249](https://github.com/torrentpier/torrentpier-lts/pull/249), [\#250](https://github.com/torrentpier/torrentpier-lts/pull/250) ([belomaxorka](https://github.com/belomaxorka))
|
||||
|
||||
## [v2.1.5-2023.08-HotFix](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08-HotFix) (2023-09-17)
|
||||
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.08...v2.1.5-2023.08-HotFix)
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $attach_config;
|
||||
|
||||
DB()->expect_slow_query(600);
|
||||
|
||||
$fix_errors = true;
|
||||
@ -26,6 +28,17 @@ DB()->add_shutdown_query("DROP TEMPORARY TABLE IF EXISTS $tmp_attach_tbl");
|
||||
// Get attach_mod config
|
||||
$attach_dir = get_attachments_dir();
|
||||
|
||||
// Creates thumb directory if not exists
|
||||
if (intval($attach_config['img_create_thumbnail']))
|
||||
{
|
||||
$thumb_dir = "$attach_dir/" . THUMB_DIR;
|
||||
if (!is_dir($thumb_dir))
|
||||
{
|
||||
@mkdir($thumb_dir, 0755);
|
||||
@chmod($thumb_dir, 0777);
|
||||
}
|
||||
}
|
||||
|
||||
// Get all names of existed attachments and insert them into $tmp_attach_tbl
|
||||
if ($dir = @opendir($attach_dir))
|
||||
{
|
||||
@ -221,4 +234,4 @@ if ($debug_mode)
|
||||
|
||||
DB()->query("DROP TEMPORARY TABLE $tmp_attach_tbl");
|
||||
|
||||
unset($fix_errors, $debug_mode);
|
||||
unset($fix_errors, $debug_mode);
|
||||
|
Loading…
Reference in New Issue
Block a user