Dotclear

Changeset 2432:b687f15775dd for inc/core


Ignore:
Timestamp:
10/17/13 20:27:45 (12 years ago)
Author:
Denis Jean-Chirstian <contact@…>
Branch:
2.6
Message:

Fix manuel installation of older plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.modules.php

    r2245 r2432  
    318318                    $id = $tmp[0]; 
    319319                    $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))) 
    321321                    { 
    322322                         # delete old module 
     
    330330                         $zip->close(); 
    331331                         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)));         
    333333                    } 
    334334               } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map