Thanks, Gareth.
I was able to resolve my specific issue, by adding the below to the moodlelib.php function email_to_user:
/hack to ensure user gets cron emails based on their preferred team/
if($PAGE->bodyid === "page-admin-cli-cron" and !empty($user->theme)) {
$PAGE->force_theme($user->theme);
}
/hack to ensure user gets cron emails based on their preferred team/
It should check if a user has a preferred theme and if e-mail is generated by cron, let's use a preferred theme, rather than system's default...
I was able to resolve my specific issue, by adding the below to the moodlelib.php function email_to_user:
/hack to ensure user gets cron emails based on their preferred team/
if($PAGE->bodyid === "page-admin-cli-cron" and !empty($user->theme)) {
$PAGE->force_theme($user->theme);
}
/hack to ensure user gets cron emails based on their preferred team/
It should check if a user has a preferred theme and if e-mail is generated by cron, let's use a preferred theme, rather than system's default...