From 41c719feac2c0578bb400e8ad8aa0090600affeb Mon Sep 17 00:00:00 2001 From: javidalkaruzi Date: Wed, 11 Nov 2015 14:18:02 -0500 Subject: [PATCH] Changed $opt['locale'] to $locale --- src/RRule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RRule.php b/src/RRule.php index 6b2c155..ea5b4c3 100755 --- a/src/RRule.php +++ b/src/RRule.php @@ -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; } -} \ No newline at end of file +}