1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Merge pull request #3446 from MateBartus/ticket/13654

[ticket/13654] Moving reporting into controller
This commit is contained in:
Tristan Darricau
2015-04-16 21:30:52 +02:00
26 changed files with 1208 additions and 343 deletions

View File

@@ -223,6 +223,20 @@ class helper
return $this->render('message_body.html', $this->user->lang($title), $code);
}
/**
* 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
*