Resolved wf_threads.css error

Discussion in '[bd] Widget Framework' started by alfa1, Oct 10, 2016.

  1. alfa1

    alfa1 Active Member

    Arty noticed a bug in 2.6.3 beta 16 in wf_threads.css:
    With XenForo 1.5.10 calculation shows error message because content.padding-right is a string, not number.
    Code:
           .WidgetFramework_WidgetRenderer_Threads_FullThreadList .message .newIndicator
           {
               {xen:property messageNewIndicator}
    
               margin-right: -{xen:calc '{xen:property content.padding-right} + 5'}px;
           }
    should be:

    Code:
           .WidgetFramework_WidgetRenderer_Threads_FullThreadList .message .newIndicator
           {
               {xen:property messageNewIndicator}
    
               margin-right: -{xen:calc 'intval({xen:property content.padding-right}) + 5'}px;
           }
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    How do it show error? Can you take a screenshot? Normally PHP will convert string to int silently and no error should occur.
    I'm on 1.5.10 and don't see any error fyi.
     
  3. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Thanks for the link. All instances have been updated to avoid the warning.
     
Loading...