aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/updates.class.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-06-29 15:10:09 +0000
committermistic100 <mistic@piwigo.org>2012-06-29 15:10:09 +0000
commite21e16e76e0b0538f6acaef4b06a286e93702288 (patch)
tree19b33d25a15a4b26ba5b80a38730a1c60f9e390e /admin/include/updates.class.php
parentaa10f5455869fc782b6cd3bef331b3cfbeb85f5f (diff)
merge r16179 from trunk
bug 2671: use get_branch_from_version() to find the real branch, however the version looks like git-svn-id: http://piwigo.org/svn/branches/2.4@16180 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/updates.class.php')
-rw-r--r--admin/include/updates.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/include/updates.class.php b/admin/include/updates.class.php
index 3a81fbb0f..0ec0e0c40 100644
--- a/admin/include/updates.class.php
+++ b/admin/include/updates.class.php
@@ -63,7 +63,7 @@ class updates
{
$version = $pem_versions[0]['name'];
}
- $branch = substr($version, 0, strrpos($version, '.'));
+ $branch = get_branch_from_version($version);
foreach ($pem_versions as $pem_version)
{
if (strpos($pem_version['name'], $branch) === 0)