fix a DboDataSource buildJoinStatement bug that table prefix is appended to subquery
added test to disprove #3588
apply code convention
Merge pull request #1103 from perrywky/master

fix a DboDataSource buildJoinStatement bug that table prefix is appended to subquery

Fixes #3579
Import ClassRegistry before using.

Fixes #3594
Update lib/Cake/Utility/Sanitize.php

Correctly use the $start variable in Sanitize::escape().
Update version number to 2.2.7
Merge tag '2.2.7'

CakePHP 2.2.7

Conflicts:
	lib/Cake/VERSION.txt
Added a note about plugin assets not working witout url rewrite

http://cakephp.lighthouseapp.com/projects/42880/tickets/25-i-installed-but-dont-see-the-images-and-css-of-debugkit

> Plugin assets do not work without url rewriting, this is in the
documentation for CakePHP itself. I guess it could be repeated for this
and every other plugin.

> I could have sworn it was with the Plugin Assets section, but
apparently its not there. Perhaps its just something I know from
experience.

See also:

* http://cakephp.lighthouseapp.com/projects/42648/tickets/1755-plugin-webroot-without-mod_rewrite-problem
* http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/500-plugin-css-directories-bug#ticket-500-8

Signed-off-by: mark_story <mark@mark-story.com>

Refs #GH-1113
Brought \app\Config and \lib\Cake\Console\Templates\skel\Config in sync
coding standards
Fix for CakeShell schema generate for Sqlsrv

Do not generate invalid schema.php when using SQLServer

Refs #3559
Fixed wrong statement in Sqlserver class header

http://www.php.net/manual/en/ref.pdo-sqlsrv.php

--> PDO_SQLSRV is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to MS SQL Server (starting with SQL Server 2005) and SQL Azure databases.
Fix issue where bake was missing habtm associations

If the current model is not the first table, habtm associations would be
missed. This was caused by eff4004261a2bd05e4df54ee2af057c680ff50fc

Refs #3532
Fixes #3605
Merge branch 'master' into 2.4