diff --git a/admin/stats/tracker.php b/admin/stats/tracker.php index 66f8a8a0d..83f3a8501 100644 --- a/admin/stats/tracker.php +++ b/admin/stats/tracker.php @@ -128,4 +128,4 @@ echo ''; DB()->query('DROP TEMPORARY TABLE ' . TMP_TRACKER_TABLE); -bb_exit(); +exit(); diff --git a/library/includes/functions.php b/library/includes/functions.php index 326dc7d7a..b6372162d 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -1692,7 +1692,7 @@ function caching_output($enabled, $mode, $cache_var_name, $ttl = 300) if ($mode == 'send') { if ($cached_contents = CACHE('bb_cache')->get($cache_var_name)) { - bb_exit($cached_contents); + exit($cached_contents); } } elseif ($mode == 'store') { if ($output = ob_get_contents()) { diff --git a/library/includes/init_bb.php b/library/includes/init_bb.php index 0e667c9e4..1e52392bc 100644 --- a/library/includes/init_bb.php +++ b/library/includes/init_bb.php @@ -333,17 +333,6 @@ function send_no_cache_headers() header('Pragma: no-cache'); } -/** - * @param string $output - */ -function bb_exit($output = '') -{ - if ($output) { - echo $output; - } - exit; -} - /** * Convert special characters to HTML entities * diff --git a/library/includes/page_footer.php b/library/includes/page_footer.php index 687efe939..b32b9e529 100644 --- a/library/includes/page_footer.php +++ b/library/includes/page_footer.php @@ -89,4 +89,4 @@ if (defined('REQUESTED_PAGE') && !defined('DISABLE_CACHING_OUTPUT')) { } } -bb_exit(); +exit(); diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index f6e47c77b..80f92177b 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -552,7 +552,7 @@ class Torrent header("Content-Type: application/x-bittorrent; name=\"$dl_fname\""); header("Content-Disposition: attachment; filename=\"$dl_fname\""); - bb_exit($output); + exit($output); } /**