Skip to content

Commit

Permalink
terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
basz committed Oct 18, 2013
1 parent 18d4840 commit 40fc469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SlmLocale/View/Helper/LocaleMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,14 @@ protected function checkLocaleMethod($method)

protected function callLocale($method, $locale, $in_locale = false)
{
$call = sprintf('\Locale::get%s', ucfirst($method));
$function = sprintf('\Locale::get%s', ucfirst($method));

$args = array($locale);

if ($in_locale && !in_array($method, array('primaryLanguage', 'region', 'script'))) {
$args[] = $in_locale;
}

return call_user_func_array($call, $args);
return call_user_func_array($function, $args);
}
}

0 comments on commit 40fc469

Please sign in to comment.