Minor fixes (#139)

* Minor fixes

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-04-06 23:01:38 +07:00 committed by GitHub
parent ec1eb0a007
commit 6b3b0e8310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -19,7 +19,7 @@
- Make sql log file name configurable [\#130](https://github.com/torrentpier/torrentpier-lts/pull/130) ([belomaxorka](https://github.com/belomaxorka)) - Make sql log file name configurable [\#130](https://github.com/torrentpier/torrentpier-lts/pull/130) ([belomaxorka](https://github.com/belomaxorka))
- Enhanced https check [\#131](https://github.com/torrentpier/torrentpier-lts/pull/131), [\#132](https://github.com/torrentpier/torrentpier-lts/pull/132) ([belomaxorka](https://github.com/belomaxorka)) - Enhanced https check [\#131](https://github.com/torrentpier/torrentpier-lts/pull/131), [\#132](https://github.com/torrentpier/torrentpier-lts/pull/132) ([belomaxorka](https://github.com/belomaxorka))
- Added ability to configure sphinx debug [\#137](https://github.com/torrentpier/torrentpier-lts/pull/137) ([belomaxorka](https://github.com/belomaxorka)) - Added ability to configure sphinx debug [\#137](https://github.com/torrentpier/torrentpier-lts/pull/137) ([belomaxorka](https://github.com/belomaxorka))
- Minor fixes [\#124](https://github.com/torrentpier/torrentpier-lts/pull/124), [\#133](https://github.com/torrentpier/torrentpier-lts/pull/133), [\#135](https://github.com/torrentpier/torrentpier-lts/pull/135), [\#136](https://github.com/torrentpier/torrentpier-lts/pull/136) ([belomaxorka](https://github.com/belomaxorka)) - Minor fixes [\#124](https://github.com/torrentpier/torrentpier-lts/pull/124), [\#133](https://github.com/torrentpier/torrentpier-lts/pull/133), [\#135](https://github.com/torrentpier/torrentpier-lts/pull/135), [\#136](https://github.com/torrentpier/torrentpier-lts/pull/136), [\#139](https://github.com/torrentpier/torrentpier-lts/pull/139) ([belomaxorka](https://github.com/belomaxorka))
## [v2.1.5-2023.03](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.03) (2023-04-04) ## [v2.1.5-2023.03](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.03) (2023-04-04)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.03...main) [Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.03...main)

View File

@ -29,7 +29,7 @@ include(ATTACH_DIR .'includes/functions_selects.php');
if (!isset($lang['TEST_SETTINGS_SUCCESSFUL'])) if (!isset($lang['TEST_SETTINGS_SUCCESSFUL']))
{ {
// include_once is used within the function // include_once is used within the function
include_attach_lang(); // include_attach_lang();
} }
// Init Vars // Init Vars
@ -43,6 +43,9 @@ $size = get_var('size', '');
$mode = get_var('mode', ''); $mode = get_var('mode', '');
$e_mode = get_var('e_mode', ''); $e_mode = get_var('e_mode', '');
$error = false;
$add_forum = (isset($_POST['add_forum'])) ? TRUE : FALSE;
$delete_forum = (isset($_POST['del_forum'])) ? TRUE : FALSE;
$submit = (isset($_POST['submit'])) ? TRUE : FALSE; $submit = (isset($_POST['submit'])) ? TRUE : FALSE;
// Get Attachment Config // Get Attachment Config
@ -511,9 +514,6 @@ if ($e_mode == 'perm')
{ {
$group = get_var('e_group', 0); $group = get_var('e_group', 0);
$add_forum = (isset($_POST['add_forum'])) ? TRUE : FALSE;
$delete_forum = (isset($_POST['del_forum'])) ? TRUE : FALSE;
if (isset($_POST['close_perm'])) if (isset($_POST['close_perm']))
{ {
$e_mode = ''; $e_mode = '';

View File

@ -1572,6 +1572,8 @@ function bb_date ($gmepoch, $format = false, $friendly_date = true)
{ {
global $bb_cfg, $lang, $userdata; global $bb_cfg, $lang, $userdata;
$gmepoch = (int)$gmepoch;
if (!$format) $format = $bb_cfg['default_dateformat']; if (!$format) $format = $bb_cfg['default_dateformat'];
if (empty($lang)) require_once($bb_cfg['default_lang_dir'] .'main.php'); if (empty($lang)) require_once($bb_cfg['default_lang_dir'] .'main.php');