• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Deferred Classes

xf_phantom

Well-known member
#1
In XenForo_Deferred_DailyStats and XenForo_Deferred_EmailTemplate you have following code:
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: