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:
Diffstat (limited to 'plugins/ScheduledReports/Controller.php')
-rw-r--r--plugins/ScheduledReports/Controller.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/plugins/ScheduledReports/Controller.php b/plugins/ScheduledReports/Controller.php
index 3192a3cfc4..a58faed74e 100644
--- a/plugins/ScheduledReports/Controller.php
+++ b/plugins/ScheduledReports/Controller.php
@@ -30,17 +30,27 @@ class Controller extends \Piwik\Plugin\Controller
// get report types
$reportTypes = API::getReportTypes();
+ $reportTypeOptions = array();
+ foreach ($reportTypes as $reportType => $icon) {
+ $reportTypeOptions[$reportType] = mb_strtoupper($reportType);
+ }
$view->reportTypes = $reportTypes;
+ $view->reportTypeOptions = $reportTypeOptions;
$view->defaultReportType = self::DEFAULT_REPORT_TYPE;
$view->defaultReportFormat = ScheduledReports::DEFAULT_REPORT_FORMAT;
$view->displayFormats = ScheduledReports::getDisplayFormats();
$reportsByCategoryByType = array();
+ $reportFormatsByReportTypeOptions = array();
$reportFormatsByReportType = array();
$allowMultipleReportsByReportType = array();
foreach ($reportTypes as $reportType => $reportTypeIcon) {
// get report formats
$reportFormatsByReportType[$reportType] = API::getReportFormats($reportType);
+ $reportFormatsByReportTypeOptions[$reportType] = $reportFormatsByReportType[$reportType];
+ foreach ($reportFormatsByReportTypeOptions[$reportType] as $type => $icon) {
+ $reportFormatsByReportTypeOptions[$reportType][$type] = mb_strtoupper($type);
+ }
$allowMultipleReportsByReportType[$reportType] = API::allowMultipleReports($reportType);
// get report metadata
@@ -53,6 +63,7 @@ class Controller extends \Piwik\Plugin\Controller
}
$view->reportsByCategoryByReportType = $reportsByCategoryByType;
$view->reportFormatsByReportType = $reportFormatsByReportType;
+ $view->reportFormatsByReportTypeOptions = $reportFormatsByReportTypeOptions;
$view->allowMultipleReportsByReportType = $allowMultipleReportsByReportType;
$reports = array();
@@ -78,7 +89,9 @@ class Controller extends \Piwik\Plugin\Controller
$view->segmentEditorActivated = false;
if (API::isSegmentEditorActivated()) {
- $savedSegmentsById = array();
+ $savedSegmentsById = array(
+ '' => Piwik::translate('SegmentEditor_DefaultAllVisits')
+ );
foreach (APISegmentEditor::getInstance()->getAll($this->idSite) as $savedSegment) {
$savedSegmentsById[$savedSegment['idsegment']] = $savedSegment['name'];
}