Skip to content

Commit

Permalink
$txtBirthdayEmails - a few misses.
Browse files Browse the repository at this point in the history
Signed-off-by: Norv <a.w.norv@gmail.com>
  • Loading branch information
norv authored and eurich committed Jun 3, 2013
1 parent 571d142 commit 2785312
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sources/Load.php
Expand Up @@ -2000,7 +2000,7 @@ function addInlineJavascript($javascript, $defer = false)
*/
function loadLanguage($template_name, $lang = '', $fatal = true, $force_reload = false)
{
global $user_info, $language, $settings, $context, $modSettings;
global $user_info, $language, $settings, $context, $modSettings, $txtBirthdayEmails;
global $db_show_debug, $txt;
static $already_loaded = array();

Expand Down Expand Up @@ -2084,15 +2084,15 @@ function loadLanguage($template_name, $lang = '', $fatal = true, $force_reload =
}
$txt['emails'] = array();
}
if (!empty($birthdayEmails))
if (!empty($txtBirthdayEmails))
{
foreach ($birthdayEmails as $key => $value)
foreach ($txtBirthdayEmails as $key => $value)
{
$txtBirthdayEmails[$key . '_subject'] = $value['subject'];
$txtBirthdayEmails[$key . '_body'] = $value['body'];
$txtBirthdayEmails[$key . '_author'] = $value['author'];
}
$birthdayEmails = array();
$txtBirthdayEmails = array();
}
}

Expand Down
2 changes: 1 addition & 1 deletion sources/ScheduledTasks.php
Expand Up @@ -1422,7 +1422,7 @@ function scheduled_fetchFiles()
*/
function scheduled_birthdayemails()
{
global $modSettings, $mbname, $txt, $birthdayEmails;
global $modSettings, $mbname, $txt, $txtBirthdayEmails;

$db = database();

Expand Down

0 comments on commit 2785312

Please sign in to comment.