Minor improvements (#244)

* Minor improvements

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-09-17 01:16:52 +07:00 committed by GitHub
parent 957a9615d4
commit 58bfce942d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View File

@ -6,7 +6,7 @@
**Merged pull requests:**
- Release v2.1.5-2023.09 🎉
- Minor improvements [\#235](https://github.com/torrentpier/torrentpier-lts/pull/235), [\#236](https://github.com/torrentpier/torrentpier-lts/pull/236), [\#237](https://github.com/torrentpier/torrentpier-lts/pull/237), [\#238](https://github.com/torrentpier/torrentpier-lts/pull/238), [\#239](https://github.com/torrentpier/torrentpier-lts/pull/239), [\#240](https://github.com/torrentpier/torrentpier-lts/pull/240), [\#241](https://github.com/torrentpier/torrentpier-lts/pull/241), [\#242](https://github.com/torrentpier/torrentpier-lts/pull/242), [\#243](https://github.com/torrentpier/torrentpier-lts/pull/243) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#235](https://github.com/torrentpier/torrentpier-lts/pull/235), [\#236](https://github.com/torrentpier/torrentpier-lts/pull/236), [\#237](https://github.com/torrentpier/torrentpier-lts/pull/237), [\#238](https://github.com/torrentpier/torrentpier-lts/pull/238), [\#239](https://github.com/torrentpier/torrentpier-lts/pull/239), [\#240](https://github.com/torrentpier/torrentpier-lts/pull/240), [\#241](https://github.com/torrentpier/torrentpier-lts/pull/241), [\#242](https://github.com/torrentpier/torrentpier-lts/pull/242), [\#243](https://github.com/torrentpier/torrentpier-lts/pull/243), [\#244](https://github.com/torrentpier/torrentpier-lts/pull/244) ([belomaxorka](https://github.com/belomaxorka))
## [v2.1.5-2023.08](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08) (2023-09-04)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.07...v2.1.5-2023.08)

View File

@ -2817,22 +2817,21 @@ function bb_captcha ($mode, $callback = '')
{
global $bb_cfg, $lang;
require_once(CLASS_DIR .'recaptcha.php');
$secret = $bb_cfg['captcha']['secret_key'];
$public = $bb_cfg['captcha']['public_key'];
$theme = isset($bb_cfg['captcha']['theme']) ? $bb_cfg['captcha']['theme'] : 'light';
if (!$bb_cfg['captcha']['disabled'] && (!$public || !$secret))
{
bb_die($lang['CAPTCHA_SETTINGS']);
}
require_once(CLASS_DIR .'recaptcha.php');
$reCaptcha = new ReCaptcha($secret);
switch ($mode)
{
case 'get':
if (!$public || !$secret)
{
bb_die($lang['CAPTCHA_SETTINGS']);
}
return "
<script type=\"text/javascript\">
var onloadCallback = function() {