1
0
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:
javidalkaruzi 2015-11-11 14:18:02 -05:00
parent c303be940d
commit 41c719feac

View File

@ -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;
}
}
}