From 597ff7ff5033169926f2a3c94927d85f6684063a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 13 Nov 2012 23:23:59 +0100 Subject: [PATCH] Added status attribute --- com.woltlab.wcf/template/redirect.tpl | 2 +- wcfsetup/install/files/lib/util/HeaderUtil.class.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/com.woltlab.wcf/template/redirect.tpl b/com.woltlab.wcf/template/redirect.tpl index da71ff9d01..d5293e979f 100644 --- a/com.woltlab.wcf/template/redirect.tpl +++ b/com.woltlab.wcf/template/redirect.tpl @@ -12,7 +12,7 @@ {include file='header'} -
+ diff --git a/wcfsetup/install/files/lib/util/HeaderUtil.class.php b/wcfsetup/install/files/lib/util/HeaderUtil.class.php index e6f850c46f..c7be01a4d1 100644 --- a/wcfsetup/install/files/lib/util/HeaderUtil.class.php +++ b/wcfsetup/install/files/lib/util/HeaderUtil.class.php @@ -104,13 +104,15 @@ final class HeaderUtil { * @param string $location * @param string $message * @param integer $delay + * @param string $status */ - public static function delayedRedirect($location, $message, $delay = 5) { + public static function delayedRedirect($location, $message, $delay = 5, $status = 'success') { WCF::getTPL()->assign(array( 'url' => $location, 'message' => $message, 'wait' => $delay, - 'templateName' => 'redirect' + 'templateName' => 'redirect', + 'status' => $status )); WCF::getTPL()->display('redirect'); } -- 2.20.1