Commit 029c9b3f authored by lrrcenter's avatar lrrcenter

[ENH] Daily Reports. Output progress messages during daily-report:send script...

[ENH] Daily Reports. Output progress messages during daily-report:send script execution. Add a deprecation notice to tiki-user_reports_send.php
parent d2d23739
......@@ -26,7 +26,11 @@ class Reports_Send_EmailBuilder
public function emailBody($user_data, $report_preferences, $report_cache)
{
$base_url = $report_cache[0]['data']['base_url'];
if (isset($report_cache[0])) {
$base_url = $report_cache[0]['data']['base_url'];
} else {
$base_url = "";
}
$smarty = TikiLib::lib('smarty');
......
......@@ -30,7 +30,12 @@ class DailyReportSendCommand extends Command
$access->check_feature('feature_daily_report_watches');
$output->writeln('Generating reports...');
$reportsManager = Reports_Factory::build('Reports_Manager');
$output->writeln('Sending...');
$reportsManager->send();
$output->writeln('Finished.');
}
}
......@@ -14,6 +14,8 @@ if (php_sapi_name() != 'cli') {
$access->check_permission('tiki_p_admin');
}
echo("This script is deprecated and does not work in Multitiki installations.\nPlease use 'console.php daily-report:send' instead.");
$access->check_feature('feature_daily_report_watches');
$reportsManager = Reports_Factory::build('Reports_Manager');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment