Fixed Deferred Classes

xf_phantom

Well-known member
In XenForo_Deferred_DailyStats and XenForo_Deferred_EmailTemplate you have following code:
Rich (BB code):
     $typePhrase = new XenForo_Phrase('rebuilding');
     $typePhrase = new XenForo_Phrase('daily_statistics');
     $status = sprintf('%s... %s (%s)', $typePhrase, $typePhrase, XenForo_Locale::date($data['position'], 'absolute'));

the 2 phrases shouldn't use the same variable name, the typephrase (second) will allways overwrite "rebuilding" ;)

in the other deferred classes you're using
PHP:
$actionPhrase = new XenForo_Phrase('rebuilding');
     $typePhrase = new XenForo_Phrase('admin_templates');
     $status = sprintf('%s... %s %s', $actionPhrase, $typePhrase, str_repeat(' . ', $data['position']));
 
Last edited:
Top Bottom