Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small array merging optimization

  • Loading branch information...
commit bc57b93e3f7ae274721df01d2e886111b9752a32 1 parent 9b038ab
@garyamort garyamort authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 libraries/joomla/language/language.php
View
6 libraries/joomla/language/language.php
@@ -762,19 +762,19 @@ protected function loadLanguage($filename, $extension = 'unknown')
if (file_exists($filename))
{
- $strings = $this->parse($filename);
+ $strings = ksort($this->parse($filename),SORT_STRING);
}
if ($strings)
{
if (is_array($strings))
{
- $this->strings = array_merge($this->strings, $strings);
+ $this->strings = ksort(array_merge($this->strings, $strings),SORT_STRING);
}
if (is_array($strings) && count($strings))
{
- $this->strings = array_merge($this->strings, $this->override);
+ $this->strings = ksort(array_merge($this->strings, $this->override),SORT_STRING);
$result = true;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.