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

Fixed Deferred Classes

Discussion in 'Resolved Bug Reports' started by xf_phantom, Jul 16, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    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$typePhrasestr_repeat(' . '$data['position']));
     
    Last edited: Jul 16, 2013
  2. Mike

    Mike XenForo Developer Staff Member

    Oops, fixed now. :)
     
    Jay likes this.

Share This Page