diff options
author | knut <> | 2006-02-22 21:46:16 +0000 |
---|---|---|
committer | knut <> | 2006-02-22 21:46:16 +0000 |
commit | a30da2e71ad2ed23cbcb6011ab848ab888b2dd46 (patch) | |
tree | 1225b90b956f6489f504450bdd72ac63866224a5 /framework/I18N/core/MessageSource_XLIFF.php | |
parent | 45ddffcfc4ff5b732f9f39719430b461345c8f7a (diff) |
Did some minor optimization tweaks
Diffstat (limited to 'framework/I18N/core/MessageSource_XLIFF.php')
-rw-r--r-- | framework/I18N/core/MessageSource_XLIFF.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/I18N/core/MessageSource_XLIFF.php b/framework/I18N/core/MessageSource_XLIFF.php index a2b36611..a938342d 100644 --- a/framework/I18N/core/MessageSource_XLIFF.php +++ b/framework/I18N/core/MessageSource_XLIFF.php @@ -138,9 +138,9 @@ class MessageSource_XLIFF extends MessageSource $variant = null;
- for($i = 0; $i < count($variants); $i++)
+ for($i = 0, $k = count($variants); $i < $k; ++$i)
{
- if(strlen($variants[$i])>0)
+ if(isset($variants[$i]{0}))
{
$variant .= ($variant)?'_'.$variants[$i]:$variants[$i];
$catalogues[] = $catalogue.$this->dataSeparator.
@@ -167,9 +167,9 @@ class MessageSource_XLIFF extends MessageSource $variant = null;
- for($i = 0; $i < count($variants); $i++)
+ for($i = 0, $k = count($variants); $i < $k; ++$i)
{
- if(strlen($variants[$i])>0)
+ if(isset($variants[$i]{0}))
{
$variant .= ($variant)?'_'.$variants[$i]:$variants[$i];
$catalogues[] = $variant.'/'.$catalogue.$this->dataExt;
|