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

AndyB

Well-known member
#1
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:

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