Re: attachments 404
Reply #2 –
Yep.
What I did here live is:
// Attachments don't require the entire theme to be loaded.
if ($_req->getQuery('action') === 'dlattach' && (!empty($modSettings['allow_guestAccess']) && $user_info['is_guest']) && (empty($maintenance) || allowedTo('admin_forum')))
detectBrowser();
// Load the current theme. (note that ?theme=1 will also work, may be used for guest theming.)
else
{
loadTheme();
// Load BadBehavior before we go much further
loadBadBehavior();
// The parser is not a DIC just yet
loadBBCParsers();
}