diff options
author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-04-16 21:30:52 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-04-16 21:30:52 +0200 |
commit | c89384eb86c0d2ff89f9df69dbd14fb61cfcb624 (patch) | |
tree | 98bac3192ed32ea6483c33a77aadc1c1f95200cf /phpBB/phpbb/controller | |
parent | Merge pull request #3487 from MateBartus/ticket/13697 (diff) | |
parent | [ticket/13654] Moving reporting into controller (diff) | |
download | phpbb-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.tar.gz phpbb-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.tar.bz2 phpbb-c89384eb86c0d2ff89f9df69dbd14fb61cfcb624.zip |
Merge pull request #3446 from MateBartus/ticket/13654
[ticket/13654] Moving reporting into controller
Diffstat (limited to 'phpBB/phpbb/controller')
-rw-r--r-- | phpBB/phpbb/controller/helper.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/phpbb/controller/helper.php b/phpBB/phpbb/controller/helper.php index 68ccfafddf..1518169458 100644 --- a/phpBB/phpbb/controller/helper.php +++ b/phpBB/phpbb/controller/helper.php @@ -224,6 +224,20 @@ class helper } /** + * Assigns automatic refresh time meta tag in template + * + * @param int $time time in seconds, when redirection should occur + * @param string $url the URL where the user should be redirected + * @return null + */ + public function assign_meta_refresh_var($time, $url) + { + $this->template->assign_vars(array( + 'META' => '<meta http-equiv="refresh" content="' . $time . '; url=' . $url . '" />', + )); + } + + /** * Return the current url * * @return string |