diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-12-02 17:02:56 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-12-02 17:02:56 +0000 |
commit | 9ad79023b1bb6b088dc1426bb26f5f8675ee1ee2 (patch) | |
tree | 79d5746cd2b62314f0bf95727402443ae59da9fd | |
parent | 3cc422b22c43708bff474ede42f2a59ac9a97e20 (diff) | |
download | forums-9ad79023b1bb6b088dc1426bb26f5f8675ee1ee2.tar forums-9ad79023b1bb6b088dc1426bb26f5f8675ee1ee2.tar.gz forums-9ad79023b1bb6b088dc1426bb26f5f8675ee1ee2.tar.bz2 forums-9ad79023b1bb6b088dc1426bb26f5f8675ee1ee2.tar.xz forums-9ad79023b1bb6b088dc1426bb26f5f8675ee1ee2.zip |
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
-rw-r--r-- | phpBB/includes/functions.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 3ed71add61..55c4cc5b51 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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 & |