Skip to content

Commit

Permalink
Fixed issue #6151: CSS errors on public statistics page
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 12, 2012
1 parent 1a796e7 commit 73969c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/statistics_function.php
Expand Up @@ -589,7 +589,7 @@ function generate_statistics($surveyid, $allfields, $q2show='all', $usegraph=0,
if ($total)
{
$percent=sprintf("%01.2f", ($results/$total)*100);
$statisticsoutput .= "\t<tr><th align='right'>".$statlang->gT("Percentage of total:").'</th>'
$statisticsoutput .= "\t<tr><th>".$statlang->gT("Percentage of total:").'</th>'
."<td>$percent%</td></tr>\n";
}
$statisticsoutput .="</table>\n";
Expand Down
3 changes: 3 additions & 0 deletions statistics_user.php
Expand Up @@ -156,6 +156,8 @@
//Create header
sendcacheheaders();
echo getHeader();
echo templatereplace(file_get_contents("$thisSurveyCssPath/startpage.pstpl"));


/*
* only show questions where question attribute "public_statistics" is set to "1"
Expand Down Expand Up @@ -448,6 +450,7 @@
echo $statisticsoutput;


echo templatereplace(file_get_contents("$thisSurveyCssPath/endpage.pstpl"));
//output footer
echo getFooter();

Expand Down

0 comments on commit 73969c6

Please sign in to comment.