Skip to content

Commit

Permalink
Fixed issue #4987: Missing footer translation in PDF-report
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9854 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Mar 8, 2011
1 parent ae9f359 commit 6681190
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion admin/statistics_function.php
Expand Up @@ -209,6 +209,8 @@ function generate_statistics($surveyid, $allfields, $q2show='all', $usegraph=0,
if($outputType=='pdf')
{
require_once('classes/tcpdf/config/lang/eng.php');
global $l;
$l['w_page'] = $statlang->gT("Page",'unescaped');
require_once('classes/tcpdf/mypdf.php');

// create new PDF document
Expand All @@ -233,7 +235,7 @@ function generate_statistics($surveyid, $allfields, $q2show='all', $usegraph=0,
$pdf->setFooterFont(Array($pdfdefaultfont, '', PDF_FONT_SIZE_DATA));

// set default header data
$pdf->SetHeaderData("statistics.png", 10, $statlang->gT("Quick statistics",'unescaped') , $statlang->gT("Survey")." ".$surveyid." '".html_entity_decode($surveyInfo['surveyls_title'],ENT_QUOTES,'UTF-8')."'");
$pdf->SetHeaderData("../../../../images/statistics.png", 10, $statlang->gT("Quick statistics",'unescaped') , $statlang->gT("Survey")." ".$surveyid." '".html_entity_decode($surveyInfo['surveyls_title'],ENT_QUOTES,'UTF-8')."'");


// set default monospaced font
Expand Down
2 changes: 1 addition & 1 deletion config-defaults.php
Expand Up @@ -530,7 +530,7 @@

//DO NOT EVER CHANGE THE FOLLOWING 5 LINES ---------------
require_once(dirname(__FILE__).'/config.php');
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']!='' && $_SERVER['HTTPS']!='off')
{
$rooturl=str_replace('http://', 'https://', $rooturl);
}
Expand Down
1 change: 1 addition & 0 deletions scripts/jquery/css/jquery.multiselect.css
Expand Up @@ -22,6 +22,7 @@
/* remove label borders in IE6 because IE6 does not support transparency */
* html .ui-multiselect-checkboxes label { border:none }

/* Some custom CSS by the LimeSurvey team */
.ui-multiselect-close, .ui-multiselect .ui-icon-triangle-2-n-s {display:none;}
.ui-multiselect-checkboxes .ui-state-hover {font-weight:normal;}

0 comments on commit 6681190

Please sign in to comment.