From 84f6c9f4a081d9ffff4c233098758280304bf50f Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 16 Jun 2024 01:16:42 +0700 Subject: [PATCH] Minor improvements (#1516) * Minor improvements * Update build_files_integrity.php * Update CHANGELOG.md * Updated --- CHANGELOG.md | 2 +- library/includes/datastore/build_files_integrity.php | 4 ++-- src/Legacy/BBCode.php | 8 ++++---- styles/templates/default/posting_editor.tpl | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe01f8d94..4d7581c24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ - Some security enhancements (Part 2) [\#1505](https://github.com/torrentpier/torrentpier/pull/1505) ([belomaxorka](https://github.com/belomaxorka)) - Some improvements for integrity checker [\#1501](https://github.com/torrentpier/torrentpier/pull/1501) ([belomaxorka](https://github.com/belomaxorka)) - Hide vote button in topic if guest [\#1507](https://github.com/torrentpier/torrentpier/pull/1507) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1502](https://github.com/torrentpier/torrentpier/pull/1502), [\#1506](https://github.com/torrentpier/torrentpier/pull/1506), [\#1509](https://github.com/torrentpier/torrentpier/pull/1509), [\#1511](https://github.com/torrentpier/torrentpier/pull/1511), [\#1515](https://github.com/torrentpier/torrentpier/pull/1515) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#1502](https://github.com/torrentpier/torrentpier/pull/1502), [\#1506](https://github.com/torrentpier/torrentpier/pull/1506), [\#1509](https://github.com/torrentpier/torrentpier/pull/1509), [\#1511](https://github.com/torrentpier/torrentpier/pull/1511), [\#1515](https://github.com/torrentpier/torrentpier/pull/1515), [\#1516](https://github.com/torrentpier/torrentpier/pull/1516) ([belomaxorka](https://github.com/belomaxorka)) - New Crowdin updates [\#1504](https://github.com/torrentpier/torrentpier/pull/1504), [\#1513](https://github.com/torrentpier/torrentpier/pull/1513) ([Exileum](https://github.com/Exileum)) ## [v2.4.3](https://github.com/torrentpier/torrentpier/tree/v2.4.3) (2024-06-09) diff --git a/library/includes/datastore/build_files_integrity.php b/library/includes/datastore/build_files_integrity.php index f850f264b..420762ace 100644 --- a/library/includes/datastore/build_files_integrity.php +++ b/library/includes/datastore/build_files_integrity.php @@ -13,7 +13,7 @@ if (!defined('BB_ROOT')) { global $bb_cfg; -if (!$bb_cfg['integrity_check']) { +if (!$bb_cfg['integrity_check'] || is_dir(BB_ROOT . '.git')) { return; } @@ -56,7 +56,7 @@ foreach ($checksumFile as $line) { } foreach ($filesList as $file) { - if (!file_exists(BB_ROOT . '/' . $file['path']) || (strtolower(md5_file(BB_ROOT . '/' . $file['path'])) !== strtolower($file['hash']))) { + if (!file_exists(BB_ROOT . $file['path']) || (strtolower(md5_file(BB_ROOT . $file['path'])) !== strtolower($file['hash']))) { $wrongFilesList[] = $file['path']; } } diff --git a/src/Legacy/BBCode.php b/src/Legacy/BBCode.php index 3461a22fd..9f23d34cd 100644 --- a/src/Legacy/BBCode.php +++ b/src/Legacy/BBCode.php @@ -123,10 +123,10 @@ class BBCode '[/i]' => '', '[s]' => '', '[/s]' => '', - '[sup]' => '', - '[/sup]' => '', - '[sub]' => '', - '[/sub]' => '', + '[sup]' => '', + '[/sup]' => '', + '[sub]' => '', + '[/sub]' => '', '[box]' => '
', '[/box]' => '
', '[indent]' => '
', diff --git a/styles/templates/default/posting_editor.tpl b/styles/templates/default/posting_editor.tpl index 4c6b9ea88..e8da89c82 100644 --- a/styles/templates/default/posting_editor.tpl +++ b/styles/templates/default/posting_editor.tpl @@ -206,7 +206,7 @@ function checkForm(form) { bbcode.addTag("codeSpoiler", "spoiler", null, "", ctrl); bbcode.addTag("codeSup", "sup", null, "", ctrl); bbcode.addTag("codeSub", "sub", null, "", ctrl); - bbcode.addTag("codeAcronym", "acronym", null, "", ctrl); + bbcode.addTag("codeAcronym", 'acronym="text"', "/acronym", "", ctrl); bbcode.addTag("codeBox", "box", null, "", ctrl); bbcode.addTag("codeIndent", "indent", null, "", ctrl);