Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Avoid duplicate var declaration in i18n::_t()

  • Loading branch information...
commit 95cdbe9d2c6ea0f08a7f45bb48a20867567df61c 1 parent 27ec83c
@chillu chillu authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 i18n/i18n.php
View
6 i18n/i18n.php
@@ -1465,10 +1465,10 @@ static function _t($entity, $string = "", $priority = 40, $context = "") {
$lang = i18n::get_lang_from_locale($locale);
// Only call getter if static isn't already defined (for performance reasons)
- $translators = self::$translators;
- if(!$translators) $translators = self::get_translators();
+ $translatorsByPrio = self::$translators;
+ if(!$translatorsByPrio) $translatorsByPrio = self::get_translators();
- foreach($translators as $priority => $translators) {
+ foreach($translatorsByPrio as $priority => $translators) {
foreach($translators as $name => $translator) {
$adapter = $translator->getAdapter();
Please sign in to comment.
Something went wrong with that request. Please try again.