add exception for Dbo classes

This commit is contained in:
AD7six 2011-05-09 00:00:19 +02:00
parent 07ffe2fcd8
commit ade85c1cd0

View file

@ -380,12 +380,16 @@ class UpgradeShell extends Shell {
$class = $match[1]; $class = $match[1];
if (substr($class, 0, 3) === 'Dbo') {
$type = 'Dbo';
} else {
preg_match('@([A-Z][^A-Z]*)$@', $class, $match); preg_match('@([A-Z][^A-Z]*)$@', $class, $match);
if ($match) { if ($match) {
$type = $match[1]; $type = $match[1];
} else { } else {
$type = 'unknown'; $type = 'unknown';
} }
}
preg_match('@^.*[\\\/]plugins[\\\/](.*?)[\\\/]@', $file, $match); preg_match('@^.*[\\\/]plugins[\\\/](.*?)[\\\/]@', $file, $match);
$base = $cwd . DS; $base = $cwd . DS;