• 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?


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: