From: Tim Düsterhus Date: Sat, 13 Apr 2013 21:27:02 +0000 (+0200) Subject: Add possibility to specify delimiter in StringStack::pushToStringStack() X-Git-Tag: 2.0.0_Beta_1~368^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8630d3f6e5396d4e4300dd104a9096ac2b9d0409;p=GitHub%2FWoltLab%2FWCF.git Add possibility to specify delimiter in StringStack::pushToStringStack() --- diff --git a/wcfsetup/install/files/lib/util/StringStack.class.php b/wcfsetup/install/files/lib/util/StringStack.class.php index f57861e3ee..cd52da0bed 100644 --- a/wcfsetup/install/files/lib/util/StringStack.class.php +++ b/wcfsetup/install/files/lib/util/StringStack.class.php @@ -25,8 +25,8 @@ final class StringStack { * @param string $type * @return string $hash */ - public static function pushToStringStack($string, $type = 'default') { - $hash = '@@'.StringUtil::getHash(uniqid(microtime()).$string).'@@'; + public static function pushToStringStack($string, $type = 'default', $delimiter = '@@') { + $hash = $delimiter.StringUtil::getHash(uniqid(microtime()).$string).$delimiter; if (!isset(self::$stringStack[$type])) { self::$stringStack[$type] = array();