cakephp/cakephp — pull request #5074 by AD7six (2014-11-04 11:23:55+00:00)
Title: correct variable mismatch

The variable `$aliased` was referenced in error.

Slight reorganisation whilst fixing that to also prevent the short plugin alias logic from overwriting existing aliases.