From: Chuck Hagenbuch Date: Fri, 29 May 2009 01:53:21 +0000 (-0400) Subject: strip locale out of the parse() arguments so that the static caller works with locales X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=cd9659740e568123c8859f0e77fcb147ae9eab49;p=horde.git strip locale out of the parse() arguments so that the static caller works with locales --- diff --git a/framework/Date_Parser/lib/Horde/Date/Parser.php b/framework/Date_Parser/lib/Horde/Date/Parser.php index 32fbd6222..58de2316a 100644 --- a/framework/Date_Parser/lib/Horde/Date/Parser.php +++ b/framework/Date_Parser/lib/Horde/Date/Parser.php @@ -6,7 +6,10 @@ class Horde_Date_Parser { public static function parse($text, $args = array()) { - return self::factory($args)->parse($text, $args); + $factoryArgs = $args; + unset($args['locale']); + + return self::factory($factoryArgs)->parse($text, $args); } public static function factory($args = array())