elkarte/Elkarte — pull request #112 by norv (2013-01-26 06:04:49+00:00)
Title: Bits of attachments refactoring

Note: untested at this time. I'd PR it for review only.
What it does: get out of the way a few duplicated code or queries.