Index: branches/5.1.x/core/install.php =================================================================== diff -u -N -r13312 -r13367 --- branches/5.1.x/core/install.php (.../install.php) (revision 13312) +++ branches/5.1.x/core/install.php (.../install.php) (revision 13367) @@ -1,6 +1,6 @@ toolkit->ConvertModuleVersion($version); + + if ($version < $this->toolkit->ConvertModuleVersion('5.1.0')) { + return 'modules/' . $path; + } + + return $path; + } + + /** * Returns list of modules, that can be upgraded * */ @@ -1194,7 +1218,9 @@ continue; } + $module_info['Path'] = $this->getModulePath($module_name, $module_info['Path'], $module_info['Version']); $upgrades_file = sprintf(UPGRADES_FILE, $module_info['Path'], 'sql'); + if (!file_exists($upgrades_file)) { // no upgrade file continue;