install/includes/libenanoinstall.php
changeset 1260 cd72bcd83401
parent 1259 49db7495f6b8
equal deleted inserted replaced
1259:49db7495f6b8 1260:cd72bcd83401
   172 			$upg_queue = array_slice($versions_avail, $i);
   172 			$upg_queue = array_slice($versions_avail, $i);
   173 			break;
   173 			break;
   174 		}
   174 		}
   175 	}
   175 	}
   176 	
   176 	
       
   177 	// cap to target rev
       
   178 	foreach ( $upg_queue as $i => $ver )
       
   179 	{
       
   180 		if ( $ver > $target_rev )
       
   181 			unset($upg_queue[$i]);
       
   182 	}
       
   183 	
   177 	// Perform upgrade
   184 	// Perform upgrade
   178 	foreach ( $upg_queue as $version )
   185 	foreach ( $upg_queue as $version )
   179 	{
   186 	{
   180 		$file = "{$dir}$version.sql";
   187 		$file = "{$dir}$version.sql";
   181 		
   188