mirror of
https://github.com/rlanvin/php-rrule.git
synced 2025-04-07 22:53:48 +02:00
Changed $opt['locale'] to $locale
This commit is contained in:
parent
c303be940d
commit
41c719feac
@ -1939,7 +1939,7 @@ class RRule implements \Iterator, \ArrayAccess, \Countable
|
||||
static protected function i18nLoad($locale)
|
||||
{
|
||||
if ( ! preg_match('/^([a-z]{2})(_[A-Z]{2})?$/', $locale, $matches) ) {
|
||||
throw new \InvalidArgumentException('The locale option does not look like a valid locale: '.$opt['locale']);
|
||||
throw new \InvalidArgumentException('The locale option does not look like a valid locale: '.$locale);
|
||||
}
|
||||
|
||||
$files = array();
|
||||
@ -2243,4 +2243,4 @@ class RRule implements \Iterator, \ArrayAccess, \Countable
|
||||
return $str;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user