mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 04:09:56 +03:00
incompatible plugins check doesn't work since 2.4, because version number format has changed
git-svn-id: http://piwigo.org/svn/trunk@16177 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
a05c8c538a
commit
d4402725e1
1 changed files with 10 additions and 1 deletions
|
@ -275,7 +275,16 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\'';
|
|||
{
|
||||
$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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue