EditTheme() was suing $theme_dir instead of $context['theme_dir']

Fixes #1668

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Use of undefined $attachmentOptions while checking for attachments

Should be $_SESSION['temp_attachments'][$attachID] instead.
Fixes #1667

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Incorrect WHERE comparison (or lack thereof) in list_getLogins()

Query was just loading up the number without comparing it to anything which would always evaluate as true

Fixes #1666

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Optimise displayDebug a little to get rid of a loop and use array_keys instead

Fixes #1665

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Remove use of deprecated logAction and use logActions instead in ReportMembers

Fixes #1662

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Fix incorrect querying for recycle boards while fetching recent posts

Fixes #1661

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Merge pull request #1670 from Dragooon/fix-misc

Miscellaneous fixes for issues