Skip to content

Commit

Permalink
Dev Fixed user statistics page.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Jul 12, 2013
1 parent 870cabc commit 2768b75
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion application/controllers/Statistics_userController.php
Expand Up @@ -36,6 +36,11 @@ public function _remap($method, $params = array())

function actionAction($surveyid,$language)
{
ob_start(function($buffer, $phase) {
App()->getClientScript()->render($buffer);
return $buffer;
});
ob_implicit_flush(false);
$iSurveyID=(int)$surveyid;
//$postlang = returnglobal('lang');
Yii::import('application.libraries.admin.progressbar',true);
Expand Down Expand Up @@ -452,7 +457,7 @@ function actionAction($surveyid,$language)
$redata = compact(array_keys(get_defined_vars()));
$data['redata'] = $redata;
Yii::app()->getClientScript()->registerScriptFile('statistics_user.js');
$this->render('/statistics_user_view',$data);
$this->renderPartial('/statistics_user_view',$data);

//output footer
echo getFooter();
Expand Down

0 comments on commit 2768b75

Please sign in to comment.