Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-07-27 13:56:38 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-07-27 13:56:38 (GMT)
commit8a4a437258111785eee635850e4607111784071d (patch)
treeda760d0265a2eb4e6cc6dbbf21470c50c3b918cf
parentce09c4a7c69ee74e05f40f573c09dabf55bec62a (diff)
Sort addons by version in services/update.php
-rw-r--r--site/app/webroot/services/update.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/app/webroot/services/update.php b/site/app/webroot/services/update.php
index 1eed22d..7931681 100644
--- a/site/app/webroot/services/update.php
+++ b/site/app/webroot/services/update.php
@@ -237,7 +237,7 @@ if (empty($errors) && !$detect_installed) {
INNER JOIN files ON files.version_id = versions.id
{$where}
ORDER BY
- versions.id DESC
+ CAST(versions.version AS DECIMAL) DESC
LIMIT 1
";