Added missing !defined('BB_ROOT') check (#917)

This commit is contained in:
Roman Kelesidis 2023-09-27 19:38:06 +07:00 committed by GitHub
commit 4929a75179
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,10 @@
* @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License
*/
if (!defined('BB_ROOT')) {
die(basename(__FILE__));
}
if (!$bb_cfg['topic_notify_enabled']) {
bb_die($lang['DISABLED']);
}