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>2013-07-20 10:55:54 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-20 10:55:54 +0400
commit7ca35544d15cdb41b17283e693c8a14777c923ad (patch)
tree7f2fea58e44ed81147da163874060200f750fa44 /plugins/PDFReports
parent66536db9562185ba7e98ca3ef3a4349ca92b8c45 (diff)
Converting to namespace: Period, Site
Diffstat (limited to 'plugins/PDFReports')
-rw-r--r--plugins/PDFReports/API.php5
-rw-r--r--plugins/PDFReports/PDFReports.php3
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/PDFReports/API.php b/plugins/PDFReports/API.php
index f177eaf4e7..b8a3d1b8dd 100644
--- a/plugins/PDFReports/API.php
+++ b/plugins/PDFReports/API.php
@@ -10,6 +10,7 @@
*/
use Piwik\Piwik;
use Piwik\Common;
+use Piwik\Site;
/**
* The PDFReports API lets you manage Scheduled Email reports, as well as generate, download or email any existing report.
@@ -379,7 +380,7 @@ class Piwik_PDFReports_API
$processedReport['segment'] = $segment;
- // TODO add static method getPrettyDate($period, $date) in Piwik_Period
+ // TODO add static method getPrettyDate($period, $date) in Period
$prettyDate = $processedReport['prettyDate'];
if ($mustRestoreGET) {
@@ -419,7 +420,7 @@ class Piwik_PDFReports_API
// render report
$description = str_replace(array("\r", "\n"), ' ', $report['description']);
- list($reportSubject, $reportTitle) = self::getReportSubjectAndReportTitle(Piwik_Site::getNameFor($idSite), $report['reports']);
+ list($reportSubject, $reportTitle) = self::getReportSubjectAndReportTitle(Site::getNameFor($idSite), $report['reports']);
$filename = "$reportTitle - $prettyDate - $description";
$reportRenderer->renderFrontPage($reportTitle, $prettyDate, $description, $reportMetadata, $segment);
diff --git a/plugins/PDFReports/PDFReports.php b/plugins/PDFReports/PDFReports.php
index 9130c2e291..2dde8fb0bb 100644
--- a/plugins/PDFReports/PDFReports.php
+++ b/plugins/PDFReports/PDFReports.php
@@ -10,6 +10,7 @@
*/
use Piwik\Piwik;
use Piwik\Common;
+use Piwik\Site;
/**
*
@@ -416,7 +417,7 @@ class Piwik_PDFReports extends Piwik_Plugin
'H',
Piwik_Date::factory(
$arbitraryDateInUTC,
- Piwik_Site::getTimezoneFor($report['idsite'])
+ Site::getTimezoneFor($report['idsite'])
)->getTimestamp()
);