Some fixes from the platform
Use JDatabase instead of MySQL queries
Correct query format
Correct query format
Remove unnecessary empty()
Fix getTemplate() issue which caused an undefined variable to be called.
changes for loadmodule styles
changing to default module style #1
removing commented code lines #1
Conditional to show header
Field mapping for core_urls field is wrong for weblinks.
Restore weblinks image code to layout.
Simplify magic getters in third party API classes
removed tests for X-Content-Encoded-By hreader in JApplicationWebTest
Adjusted comments
Fix weblinks images rendering in Beez.
Updated to fix missing border radius on first button group items.
Fix tags list views
Merge pull request #1020 from fastslack/mysql-fix

Use JDatabase instead of MySQL queries
Merge pull request #1280 from elinw/sqlfixes3.1.2

Field mapping for core_urls field is wrong for weblinks.