Remove odd inflection.

This additional inflection isn't needed.  People can type the classname
they want.

Refs #2514
This commit is contained in:
mark_story 2012-01-29 13:56:53 -05:00
parent e770c7a72d
commit a4740f02f1

View file

@ -57,7 +57,7 @@ class AclComponent extends Component {
*/ */
public function __construct(ComponentCollection $collection, $settings = array()) { public function __construct(ComponentCollection $collection, $settings = array()) {
parent::__construct($collection, $settings); parent::__construct($collection, $settings);
$name = Inflector::camelize(strtolower(Configure::read('Acl.classname'))); $name = Configure::read('Acl.classname');
if (!class_exists($name)) { if (!class_exists($name)) {
list($plugin, $name) = pluginSplit($name, true); list($plugin, $name) = pluginSplit($name, true);
App::uses($name . 'Component', $plugin . 'Controller/Component'); App::uses($name . 'Component', $plugin . 'Controller/Component');