diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-08-02 17:59:33 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-08-02 17:59:33 +0400 |
commit | a96ec40e983a8b64f4c25def541a519ff3670e6a (patch) | |
tree | bef2a5f7b1e9532dc96161334e23a553cdff7ea1 /core/ReportRenderer | |
parent | 61997f45e4c39360000e815c9e0853ae04e2f56f (diff) |
Refs #4059 Converting dozens of plugins/* classes to use Namespaces, \Piwik\Plugins\*
Added namespaces to functions.php files in the five plugins that had one
Work in progress
Diffstat (limited to 'core/ReportRenderer')
-rw-r--r-- | core/ReportRenderer/Html.php | 4 | ||||
-rw-r--r-- | core/ReportRenderer/Pdf.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/ReportRenderer/Html.php b/core/ReportRenderer/Html.php index e1d30734c4..cb8d33faa0 100644 --- a/core/ReportRenderer/Html.php +++ b/core/ReportRenderer/Html.php @@ -13,7 +13,7 @@ namespace Piwik\ReportRenderer; use Piwik\Piwik; use Piwik\View; use Piwik\ReportRenderer; -use Piwik_API_API; +use Piwik\Plugins\API\API; /** * @@ -121,7 +121,7 @@ class Html extends ReportRenderer $view->assign("reportTableRowTextSize", self::REPORT_TABLE_ROW_TEXT_SIZE); $view->assign("reportBackToTopTextSize", self::REPORT_BACK_TO_TOP_TEXT_SIZE); $view->assign("currentPath", Piwik::getPiwikUrl()); - $view->assign("logoHeader", Piwik_API_API::getInstance()->getHeaderLogoUrl()); + $view->assign("logoHeader", API::getInstance()->getHeaderLogoUrl()); } public function renderReport($processedReport) diff --git a/core/ReportRenderer/Pdf.php b/core/ReportRenderer/Pdf.php index 192a7f9133..c3ab722e27 100644 --- a/core/ReportRenderer/Pdf.php +++ b/core/ReportRenderer/Pdf.php @@ -13,7 +13,7 @@ namespace Piwik\ReportRenderer; use Piwik\Common; use Piwik\TCPDF; use Piwik\ReportRenderer; -use Piwik_API_API; +use Piwik\Plugins\API\API; /** * @see libs/tcpdf @@ -166,7 +166,7 @@ class Pdf extends ReportRenderer $this->TCPDF->Bookmark(Piwik_Translate('PDFReports_FrontPage')); // logo - $this->TCPDF->Image(Piwik_API_API::getInstance()->getLogoUrl(true), $this->logoImagePosition[0], $this->logoImagePosition[1], 180 / $factor = 2, 0, $type = '', $link = '', $align = '', $resize = false, $dpi = 300); + $this->TCPDF->Image(API::getInstance()->getLogoUrl(true), $this->logoImagePosition[0], $this->logoImagePosition[1], 180 / $factor = 2, 0, $type = '', $link = '', $align = '', $resize = false, $dpi = 300); $this->TCPDF->Ln(8); // report title |