From: Marcel Werk Date: Tue, 13 Nov 2012 22:23:59 +0000 (+0100) Subject: Added status attribute X-Git-Tag: 2.0.0_Beta_1~778^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=597ff7ff5033169926f2a3c94927d85f6684063a;p=GitHub%2FWoltLab%2FWCF.git Added status attribute --- 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'); }