Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add segment name in mail subjet and filename #7238

Closed
wants to merge 2 commits into from
Closed

Add segment name in mail subjet and filename #7238

wants to merge 2 commits into from

Conversation

ArnY
Copy link
Contributor

@ArnY ArnY commented Feb 18, 2015

Adding segment name in report title (mail subject and filename) in order to allow recipients to differentiate reports when receiving reports on a per-segment basis:

"sitename - segmentname - date" instead of "sitename - date"

Adding segment name in report title (mail subject and filename) to allow recipient to differentiate reports when receiving reports on a per-segment basis: "sitename - segmentname - date" instead of "sitename - date"
Add segment name in mail subjet and filename
@mattab mattab added this to the Piwik 2.12.0 milestone Feb 18, 2015
@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Feb 18, 2015
@@ -450,6 +450,9 @@ public function generateReport($idReport, $date, $language = false, $outputType
$description = str_replace(array("\r", "\n"), ' ', $report['description']);

list($reportSubject, $reportTitle) = self::getReportSubjectAndReportTitle(Site::getNameFor($idSite), $report['reports']);

if(is_array($segment) && strlen($segment['name'])) $reportTitle .= " - ".$segment['name'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you use the same coding style eg. add the { and put the $reportTitle on a new line? thanks!

@mattab
Copy link
Member

mattab commented Feb 18, 2015

Thanks @ArnY for the pull request. I put a little feedback

@ArnY
Copy link
Contributor Author

ArnY commented Feb 18, 2015

closing this pull request. Replaced by #7243 (cleaner, commented and respects coding styles)

@ArnY ArnY closed this Feb 18, 2015
@mattab mattab modified the milestones: Piwik 2.12.0, Piwik 2.11.1 Feb 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants