diff options
author | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:45:02 +0400 |
---|---|---|
committer | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:45:02 +0400 |
commit | 03b4953f008c1063e6d7166143ba844e8c6e89cc (patch) | |
tree | 7b9f0fef13d75417c551f813c98dba1a22f2fff3 /core/ReportRenderer | |
parent | 9b2c0a7a450fff3b634f8119c8003ae1d20b97d0 (diff) |
Refactor class Piwik_Common to \Piwik\Core\Common
Notice that auto refactoring has created a nested namespace. Not sure this is what we want - so we might have to edit those nested namespaces afterwards (I think they don't look so good)
Diffstat (limited to 'core/ReportRenderer')
-rw-r--r-- | core/ReportRenderer/Pdf.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/ReportRenderer/Pdf.php b/core/ReportRenderer/Pdf.php index 85a3c9dbda..2b20ecb169 100644 --- a/core/ReportRenderer/Pdf.php +++ b/core/ReportRenderer/Pdf.php @@ -8,7 +8,7 @@ * @category Piwik * @package Piwik_ReportRenderer */ -use Piwik\Core\Piwik_Common; +use Piwik\Core\Common; /** * @see libs/tcpdf @@ -314,7 +314,7 @@ class Piwik_ReportRenderer_Pdf extends Piwik_ReportRenderer private function formatText($text) { - return Piwik_Common::unsanitizeInputValue($text); + return Common::unsanitizeInputValue($text); } private function paintReportTable() @@ -373,7 +373,7 @@ class Piwik_ReportRenderer_Pdf extends Piwik_ReportRenderer if ($logoHeight < 16) { $topMargin = 2; } - $path = Piwik_Common::getPathToPiwikRoot() . "/" . $rowMetadata['logo']; + $path = Common::getPathToPiwikRoot() . "/" . $rowMetadata['logo']; if (file_exists($path)) { $this->TCPDF->Image($path, $posX + ($leftMargin = 2), $posY + $topMargin, $logoWidth / 4); } |