From 9883bd67ef1c12a6c7b981094341268b115a45ce Mon Sep 17 00:00:00 2001 From: mistic100 Date: Fri, 29 Jun 2012 15:08:00 +0000 Subject: bug 2671: use get_branch_from_version() to find the real branch, however the version looks like git-svn-id: http://piwigo.org/svn/trunk@16179 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/languages.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/include/languages.class.php') diff --git a/admin/include/languages.class.php b/admin/include/languages.class.php index 3698de2bf..7ef3bc6b1 100644 --- a/admin/include/languages.class.php +++ b/admin/include/languages.class.php @@ -234,7 +234,7 @@ UPDATE '.USER_INFOS_TABLE.' { $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) -- cgit v1.2.3