Skip to content

Commit

Permalink
dev: saved on sorting too
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8727 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
mennodekker committed May 19, 2010
1 parent 646a447 commit 3691a15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions classes/core/surveytranslator.php
Expand Up @@ -126,6 +126,9 @@ function getLanguageDetails($codetosearch)
function getLanguageData($orderbynative=false) {
global $clang;
static $supportedLanguages;
static $result = array();

if (isset($result[$orderbynative])) return $result[$orderbynative];

if (!isset($supportedLanguages)) {
// Albanian
Expand Down Expand Up @@ -462,6 +465,8 @@ function getLanguageData($orderbynative=false) {
{
uasort($supportedLanguages,"user_sort");
}

$result[$orderbynative] = $supportedLanguages;

Return $supportedLanguages;
}
Expand Down

0 comments on commit 3691a15

Please sign in to comment.