mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Add same redirect disable_cd_check parameter to meta_refresh - #38065
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9153 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3cc422b22c
commit
9ad79023b1
1 changed files with 7 additions and 2 deletions
|
@ -2216,12 +2216,17 @@ function build_url($strip_vars = false)
|
|||
|
||||
/**
|
||||
* Meta refresh assignment
|
||||
* Adds META template variable with meta http tag.
|
||||
*
|
||||
* @param int $time Time in seconds for meta refresh tag
|
||||
* @param string $url URL to redirect to. The url will go through redirect() first before the template variable is assigned
|
||||
* @param bool $disable_cd_check If true, meta_refresh() will redirect to an external domain. If false, the redirect point to the boards url if it does not match the current domain. Default is false.
|
||||
*/
|
||||
function meta_refresh($time, $url)
|
||||
function meta_refresh($time, $url, $disable_cd_check = false)
|
||||
{
|
||||
global $template;
|
||||
|
||||
$url = redirect($url, true);
|
||||
$url = redirect($url, true, $disable_cd_check);
|
||||
$url = str_replace('&', '&', $url);
|
||||
|
||||
// For XHTML compatibility we change back & to &
|
||||
|
|
Loading…
Add table
Reference in a new issue