Skip to content

Commit

Permalink
Revert "Small array merging optimization"
Browse files Browse the repository at this point in the history
This reverts commit bc57b93.
  • Loading branch information
ianmacl committed Dec 22, 2012
1 parent 89f4b9c commit 41273af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/joomla/language/language.php
Original file line number Diff line number Diff line change
Expand Up @@ -762,19 +762,19 @@ protected function loadLanguage($filename, $extension = 'unknown')

if (file_exists($filename))
{
$strings = ksort($this->parse($filename),SORT_STRING);
$strings = $this->parse($filename);
}

if ($strings)
{
if (is_array($strings))
{
$this->strings = ksort(array_merge($this->strings, $strings),SORT_STRING);
$this->strings = array_merge($this->strings, $strings);
}

if (is_array($strings) && count($strings))
{
$this->strings = ksort(array_merge($this->strings, $this->override),SORT_STRING);
$this->strings = array_merge($this->strings, $this->override);
$result = true;
}
}
Expand Down

0 comments on commit 41273af

Please sign in to comment.