From: Chuck Hagenbuch Date: Mon, 4 May 2009 01:37:40 +0000 (-0400) Subject: include ->args in options so that 'now' can be passed to the object constructor X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=496c251e4dd2d25317eec64da427b644be80adf2;p=horde.git include ->args in options so that 'now' can be passed to the object constructor --- diff --git a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base.php b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base.php index 526b9fdff..ee7aa49aa 100644 --- a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base.php +++ b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base.php @@ -3,6 +3,7 @@ class Horde_Date_Parser_Locale_Base { public $definitions = array(); public $args = array(); + public $now; public function __construct($args) { @@ -57,7 +58,7 @@ class Horde_Date_Parser_Locale_Base 'guess' => true, 'ambiguousTimeRange' => 6, ); - $options = array_merge($defaultOptions, $specifiedOptions); + $options = array_merge($defaultOptions, $this->args, $specifiedOptions); // ensure the specified options are valid foreach (array_keys($specifiedOptions) as $key) {