1
0
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:
Rémi Lanvin 2015-11-11 21:24:53 +02:00
commit 9aac806f79

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();