Changeset 2432:b687f15775dd for inc/core
- Timestamp:
- 10/17/13 20:27:45 (12 years ago)
- Branch:
- 2.6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.modules.php
r2245 r2432 318 318 $id = $tmp[0]; 319 319 $cur_module = $modules->getModules($id); 320 if (!empty($cur_module) && $new_modules[$id]['version'] != $cur_module['version'])320 if (!empty($cur_module) && (defined('DC_DEV') && DC_DEV === true || dcUtils::versionsCompare($new_modules[$id]['version'], $cur_module['version'], '>', true))) 321 321 { 322 322 # delete old module … … 330 330 $zip->close(); 331 331 unlink($zip_file); 332 throw new Exception(sprintf(__('Unable to upgrade "%s". ( same version)'),basename($destination)));332 throw new Exception(sprintf(__('Unable to upgrade "%s". (older or same version)'),basename($destination))); 333 333 } 334 334 }
Note: See TracChangeset
for help on using the changeset viewer.