Skip to content

Commit

Permalink
Fixed language issues while survey taking
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12015 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jan 12, 2012
1 parent 75bb260 commit 8e09f2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/helpers/surveytranslator_helper.php
Expand Up @@ -711,12 +711,12 @@ function getLanguageNameFromCode($codetosearch, $withnative=true)
}


function getLanguageRTL($codetosearch)
function getLanguageRTL($sLanguageCode)
{
$detaillanguages = getLanguageData(false,Yii::app()->session['adminlang']);
if (isset($detaillanguages[$codetosearch]['rtl']))
$aLanguageData= getLanguageData(false,$sLanguageCode);
if (isset($aLanguageData[$sLanguageCode]['rtl']))
{
return $detaillanguages[$codetosearch]['rtl'];
return $aLanguageData[$sLanguageCode]['rtl'];
}
else
{
Expand Down

0 comments on commit 8e09f2e

Please sign in to comment.