Skip to content

Commit

Permalink
Dev Small fix for language
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Oct 20, 2014
1 parent 8436716 commit 9ea6de0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions application/controllers/admin/responses.php
Expand Up @@ -94,7 +94,7 @@ public function view($iSurveyID, $iId, $sBrowseLang = '')
if(Permission::model()->hasSurveyPermission($iSurveyID,'responses','read'))
{
$aData = $this->_getData(array('iId' => $iId, 'iSurveyId' => $iSurveyID, 'browselang' => $sBrowseLang));
$oBrowseLanguage = new Limesurvey_lang($aData['language']);
$oBrowseLanguage = $aData['language'];

extract($aData);

Expand Down Expand Up @@ -283,7 +283,7 @@ public function index($iSurveyID)
$aData = $this->_getData($iSurveyID);
extract($aData);
$aViewUrls = array();
$oBrowseLanguage = new Limesurvey_lang($aData['language']);
$oBrowseLanguage = $aData['language'];

/**
* fnames is used as informational array
Expand Down Expand Up @@ -318,7 +318,7 @@ function browse($iSurveyID)
$aData = $this->_getData($iSurveyID);
extract($aData);
$aViewUrls = array();
$oBrowseLanguage = new Limesurvey_lang($aData['language']);
$oBrowseLanguage = $aData['language'];


// The column model must be built dynamically, since the columns will differ from survey to survey, depending on the questions.
Expand Down Expand Up @@ -457,8 +457,7 @@ public function getResponses_json($iSurveyID)

extract($aData);
$aViewUrls = array();
$oBrowseLanguage = new Limesurvey_lang($aData['language']);

$oBrowseLanguage = $aData['language'];

$sImageURL = Yii::app()->getConfig('adminimageurl');

Expand Down Expand Up @@ -577,8 +576,7 @@ function oldbrowse($iSurveyID)
$aData = $this->_getData($iSurveyID);
extract($aData);
$aViewUrls = array();
$oBrowseLanguage = new Limesurvey_lang($aData['language']);

$oBrowseLanguage = $aData['language'];
$tokenRequest = Yii::app()->request->getParam('token', null);

//Delete Individual answer using inrow delete buttons/links - checked
Expand Down

0 comments on commit 9ea6de0

Please sign in to comment.