I host several tiki sites on the same hosting service, so it would be nice if the daily reports included the site name in the subject line and body.
I did this with 3 minor changes:
1. templates/mail/report.tpl - add site to report template
1c1
< {tr _0=$report_user}Report for %0{/tr}.{if $report_preferences.type eq 'html'}<br><br>{/if}
2. lib/core/Reports/Send.php - add site to subject line (refactored)
66,77c66,73
< if (is_array($reportCache) && count($reportCache) >= 1) {
< if (count($reportCache) == 1) {
< $subject = tr(
< 'Report from %0 (1 change)',
< TikiLib::date_format(
< $this->tikiPrefs'short_date_format',
< $this->dt->format('U'))
< );
< } else {
< $subject = tr(
< 'Report from %0 (%1 changes)',
< TikiLib::date_format(
< $this->tikiPrefs'short_date_format',
< $this->dt->format('U')),
< count($reportCache)
< );
< }
< else {
< $subject = tr(
< 'Report from %0 (no changes)',
< TikiLib::date_format(
< $this->tikiPrefs'short_date_format',
< $this->dt->format('U'))
< );
> $subject = tr('Report on %0 from %1 ',
> $this->tikiPrefs'browsertitle',
> TikiLib::date_format(
> $this->tikiPrefs'short_date_format',
> $this->dt->format('U'))
> );
> if (!is_array($reportCache)) {
> $subject .= tr('(no changes)');
> } elseif (count($reportCache) == 1) {
> $subject .= tr('(1 change)');
> } else {
> $subject .= tr('(%0 changes)', count($reportCache));
> }
3. lib/core/Reports/Send/EmailBuilder.php - set site for report
37c37,38
<
> $smarty->assign('report_site',
> $this->tikilib->get_preference('browsertitle'));
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.