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

How to read the attachmentMaxDimensions array?

Discussion in 'XenForo Development Discussions' started by AndyB, Nov 2, 2013.

  1. AndyB

    AndyB Well-Known Member

    In my add-on I would like to get the value of the max allowed attachment width. I have tried the following but doesn't work:

    $attachmentMaxDimensions XenForo_Application::get('options')->attachmentMaxDimensions['width'];
    Edit: That is the correct code.
    Last edited: Nov 2, 2013

Share This Page