Skip to content

Commit

Permalink
fixed class condition after some changes done in Inflector::camelize …
Browse files Browse the repository at this point in the history
…in 2.6.6
  • Loading branch information
steinkel committed Jun 5, 2015
1 parent 27d5afb commit 180fe03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Lib/CakeMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,9 @@ public function __construct($options = array()) {
App::uses('PrecheckException', 'Migrations.Lib/Migration');
$this->Precheck = new PrecheckException();
} else {
$class = Inflector::camelize($options['precheck']);
list($plugin, $class) = pluginSplit($class, true);
list($plugin, $class) = pluginSplit($options['precheck'], true);
$class = Inflector::camelize($class);
App::uses($class, $plugin . 'Lib/Migration');

if (!class_exists($class)) {
throw new MigrationException($this, sprintf(
__d('migrations', 'Migration precheck class (%s) could not be loaded.'), $options['precheck']
Expand Down

0 comments on commit 180fe03

Please sign in to comment.