From e21e16e76e0b0538f6acaef4b06a286e93702288 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Fri, 29 Jun 2012 15:10:09 +0000 Subject: 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 --- admin/include/plugins.class.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'admin/include/plugins.class.php') diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php index 65e22b7b1..5d44179e6 100644 --- a/admin/include/plugins.class.php +++ b/admin/include/plugins.class.php @@ -275,16 +275,7 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\''; { $version = $pem_versions[0]['name']; } - - if (substr_count($version, '.') > 1) - { - $branch = substr($version, 0, strrpos($version, '.')); - } - else - { - $branch = $version; - } - + $branch = get_branch_from_version($version); foreach ($pem_versions as $pem_version) { if (strpos($pem_version['name'], $branch) === 0) -- cgit v1.2.3