diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-09-14 04:38:59 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-09-14 04:38:59 +0400 |
commit | e802eae2a2690a80f217bcc2952a1adb100a7a77 (patch) | |
tree | 8172f65273b2c08515ed77277c68268ccdc1fb14 /core/ReportRenderer | |
parent | a62732648844e330e0e33a2a8ecc04642fdf2d5e (diff) |
Adding Filesystem class which contains file operations
And factored out code in ServerFilesGenerator.php
Diffstat (limited to 'core/ReportRenderer')
-rw-r--r-- | core/ReportRenderer/Pdf.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/ReportRenderer/Pdf.php b/core/ReportRenderer/Pdf.php index 842908de72..d548523eae 100644 --- a/core/ReportRenderer/Pdf.php +++ b/core/ReportRenderer/Pdf.php @@ -11,9 +11,10 @@ namespace Piwik\ReportRenderer; use Piwik\Common; -use Piwik\TCPDF; -use Piwik\ReportRenderer; +use Piwik\Filesystem; use Piwik\Plugins\API\API; +use Piwik\ReportRenderer; +use Piwik\TCPDF; /** * @see libs/tcpdf @@ -378,7 +379,7 @@ class Pdf extends ReportRenderer if ($logoHeight < 16) { $topMargin = 2; } - $path = Common::getPathToPiwikRoot() . "/" . $rowMetadata['logo']; + $path = Filesystem::getPathToPiwikRoot() . "/" . $rowMetadata['logo']; if (file_exists($path)) { $this->TCPDF->Image($path, $posX + ($leftMargin = 2), $posY + $topMargin, $logoWidth / 4); } |