mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Replaced bb_exit() with native (#731)
This commit is contained in:
parent
20837e08ae
commit
eb94659c61
5 changed files with 4 additions and 15 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -89,4 +89,4 @@ if (defined('REQUESTED_PAGE') && !defined('DISABLE_CACHING_OUTPUT')) {
|
|||
}
|
||||
}
|
||||
|
||||
bb_exit();
|
||||
exit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue