diff options
author | plegall <plg@piwigo.org> | 2011-06-01 10:45:45 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-06-01 10:45:45 +0000 |
commit | 53b859811fd8436b8b51675cec7f201b64f31f62 (patch) | |
tree | 2d6c8306108019c0a7ebfa5668d0a8b84275f305 /admin/include/plugins.class.php | |
parent | d29c7cd0a8dd9f4bac86423fdbf06ecabcbc58f8 (diff) |
bug fixed: accept Piwigo version with a pattern like 2.3.0beta1 in plugins/themes/languages/updates management classes
git-svn-id: http://piwigo.org/svn/trunk@11185 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/include/plugins.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php index 22e58857c..b74b2ab7d 100644 --- a/admin/include/plugins.class.php +++ b/admin/include/plugins.class.php @@ -269,7 +269,7 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\''; $url = PEM_URL . '/api/get_version_list.php?category=12&format=php'; if (fetchRemote($url, $result) and $pem_versions = @unserialize($result)) { - if (!preg_match('/^\d+\.\d+\.\d+/', $version)) + if (!preg_match('/^\d+\.\d+\.\d+$/', $version)) { $version = $pem_versions[0]['name']; } |