mirror of
https://github.com/rlanvin/php-rrule.git
synced 2025-02-26 15:54:14 +01:00
Merge pull request #1 from javidalkaruzi/master
Changed $opt['locale'] to $locale
This commit is contained in:
commit
9aac806f79
@ -1939,7 +1939,7 @@ class RRule implements \Iterator, \ArrayAccess, \Countable
|
|||||||
static protected function i18nLoad($locale)
|
static protected function i18nLoad($locale)
|
||||||
{
|
{
|
||||||
if ( ! preg_match('/^([a-z]{2})(_[A-Z]{2})?$/', $locale, $matches) ) {
|
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();
|
$files = array();
|
||||||
@ -2243,4 +2243,4 @@ class RRule implements \Iterator, \ArrayAccess, \Countable
|
|||||||
return $str;
|
return $str;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user