Skip to content

Commit

Permalink
add exception for Dbo classes
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed May 8, 2011
1 parent 07ffe2f commit ade85c1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/Cake/Console/Command/UpgradeShell.php
Expand Up @@ -380,11 +380,15 @@ protected function _movePhpFiles($path, $options) {

$class = $match[1];

preg_match('@([A-Z][^A-Z]*)$@', $class, $match);
if ($match) {
$type = $match[1];
if (substr($class, 0, 3) === 'Dbo') {
$type = 'Dbo';
} else {
$type = 'unknown';
preg_match('@([A-Z][^A-Z]*)$@', $class, $match);
if ($match) {
$type = $match[1];
} else {
$type = 'unknown';
}
}

preg_match('@^.*[\\\/]plugins[\\\/](.*?)[\\\/]@', $file, $match);
Expand Down

0 comments on commit ade85c1

Please sign in to comment.