Skip to content

Commit

Permalink
incompatible plugins check doesn't work since 2.4, because version nu…
Browse files Browse the repository at this point in the history
…mber format has changed

git-svn-id: http://piwigo.org/svn/trunk@16177 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Jun 29, 2012
1 parent a05c8c5 commit d440272
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion admin/include/plugins.class.php
Expand Up @@ -275,7 +275,16 @@ function get_versions_to_check($version=PHPWG_VERSION)
{
$version = $pem_versions[0]['name'];
}
$branch = substr($version, 0, strrpos($version, '.'));

if (substr_count($version, '.') > 1)
{
$branch = substr($version, 0, strrpos($version, '.'));
}
else
{
$branch = $version;
}

foreach ($pem_versions as $pem_version)
{
if (strpos($pem_version['name'], $branch) === 0)
Expand Down

0 comments on commit d440272

Please sign in to comment.