Some fixes from the platform
Use JDatabase instead of MySQL queries
Correct query format
Correct query format
Remove unnecessary empty()
There is no $request here

Is this the right way to define $request to get the limitstart parameter?
There is no $return here
Fix var name
The registry variable is named $config here
Fix silly typo
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.
[#31036] Search is broken on Chrome
Simplify magic getters in third party API classes
removed tests for X-Content-Encoded-By hreader in JApplicationWebTest