Mercurial > defr > drupal > core
diff includes/install.inc @ 11:589fb7c02327 6.5
Drupal 6.5
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:19 +0100 |
parents | c1f4ac30525a |
children |
line wrap: on
line diff
--- a/includes/install.inc Tue Dec 23 14:32:08 2008 +0100 +++ b/includes/install.inc Tue Dec 23 14:32:19 2008 +0100 @@ -1,5 +1,5 @@ <?php -// $Id: install.inc,v 1.56.2.2 2008/02/11 15:10:26 goba Exp $ +// $Id: install.inc,v 1.56.2.3 2008/08/14 09:26:43 dries Exp $ define('SCHEMA_UNINSTALLED', -1); define('SCHEMA_INSTALLED', 0); @@ -35,8 +35,8 @@ * @param $module * A module name. * @return - * If the module has updates, an array of available updates. Otherwise, - * FALSE. + * If the module has updates, an array of available updates sorted by version. + * Otherwise, FALSE. */ function drupal_get_schema_versions($module) { $updates = array(); @@ -52,6 +52,7 @@ if (count($updates) == 0) { return FALSE; } + sort($updates, SORT_NUMERIC); return $updates; }