Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2015-06-22 07:27:06 +0300
committermattab <matthieu.aubry@gmail.com>2015-06-22 07:27:06 +0300
commit233c6fbfa82cf975fb6a3b6d9e5edcfd030a21ff (patch)
treef131dce2a4b922354393d7e3573991537ac42047 /core/ReportRenderer/Pdf.php
parent4fd9581b0a9fec33812fe6b8e50a7335a032cbf6 (diff)
Add new integration test to check that Piwik files didn't grow in size un-expectedly
fixes #8158
Diffstat (limited to 'core/ReportRenderer/Pdf.php')
-rw-r--r--core/ReportRenderer/Pdf.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/ReportRenderer/Pdf.php b/core/ReportRenderer/Pdf.php
index 8c1dbcf2b5..5ce45f3550 100644
--- a/core/ReportRenderer/Pdf.php
+++ b/core/ReportRenderer/Pdf.php
@@ -90,6 +90,10 @@ class Pdf extends ReportRenderer
public function setLocale($locale)
{
+ // WARNING
+ // To make Piwik release smaller, we're deleting some fonts from the Piwik build package.
+ // If you change this code below, make sure that the fonts are NOT deleted from the Piwik package:
+ // https://github.com/piwik/piwik-package/blob/master/scripts/build-package.sh
switch ($locale) {
case 'bn':
case 'hi':
@@ -129,6 +133,8 @@ class Pdf extends ReportRenderer
$reportFont = ReportRenderer::DEFAULT_REPORT_FONT_FAMILY;
break;
}
+ // WARNING: Did you read the warning above?
+
$this->reportFont = $reportFont;
}