includes/plugins.php
changeset 1019 ea039091d154
parent 1014 930c1fdd3e9f
child 1081 745200a9cc2a
equal deleted inserted replaced
1018:3e3118285700 1019:ea039091d154
   907       );
   907       );
   908       break;
   908       break;
   909     }
   909     }
   910     
   910     
   911     // list out which versions to do
   911     // list out which versions to do
   912     $index_start = @$indices[$installed] + 1;
   912     $index_start = @$indices[$installed];
   913     $index_stop  = @$indices[$dataset['version']];
   913     $index_stop  = @$indices[$dataset['version']];
   914     
   914     
   915     // Are we trying to go backwards?
   915     // Are we trying to go backwards?
   916     if ( $index_stop <= $index_start )
   916     if ( $index_stop <= $index_start )
   917     {
   917     {
   918       $return = array(
   918       $return = array(
   919         'mode' => 'error',
   919         'mode' => 'error',
   920         'error' => $lang->get('acppl_err_upgrade_to_older'),
   920         'error' => $lang->get('acppl_err_upgrade_to_older'),
       
   921         // 'debug' => "going from $installed ($index_start) to {$dataset['version']} ($index_stop)"
   921       );
   922       );
   922       break;
   923       break;
   923     }
   924     }
   924     
   925     
   925     // build the list of version sets
   926     // build the list of version sets