Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 95cdbe9d2c6ea0f08a7f45bb48a20867567df61c 1 parent 27ec83c
Ingo Schommer authored December 20, 2011

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  i18n/i18n.php
6  i18n/i18n.php
@@ -1465,10 +1465,10 @@ static function _t($entity, $string = "", $priority = 40, $context = "") {
1465 1465
 		$lang = i18n::get_lang_from_locale($locale);
1466 1466
 		
1467 1467
 		// Only call getter if static isn't already defined (for performance reasons)
1468  
-		$translators = self::$translators;
1469  
-		if(!$translators) $translators = self::get_translators();
  1468
+		$translatorsByPrio = self::$translators;
  1469
+		if(!$translatorsByPrio) $translatorsByPrio = self::get_translators();
1470 1470
 		
1471  
-		foreach($translators as $priority => $translators) {
  1471
+		foreach($translatorsByPrio as $priority => $translators) {
1472 1472
 			foreach($translators as $name => $translator) {
1473 1473
 				$adapter = $translator->getAdapter();
1474 1474
 

0 notes on commit 95cdbe9

Please sign in to comment.
Something went wrong with that request. Please try again.