diff options
Diffstat (limited to 'admin/include/plugins.class.php')
-rw-r--r-- | admin/include/plugins.class.php | 11 |
1 files changed, 1 insertions, 10 deletions
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) |