From 53b859811fd8436b8b51675cec7f201b64f31f62 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 1 Jun 2011 10:45:45 +0000 Subject: 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 --- admin/include/themes.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/include/themes.class.php') diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php index 294046976..a6e234b49 100644 --- a/admin/include/themes.class.php +++ b/admin/include/themes.class.php @@ -441,7 +441,7 @@ SELECT $url = PEM_URL . '/api/get_version_list.php'; if (fetchRemote($url, $result, $get_data) and $pem_versions = @unserialize($result)) { - if (!preg_match('/^\d+\.\d+\.\d+/', $version)) + if (!preg_match('/^\d+\.\d+\.\d+$/', $version)) { $version = $pem_versions[0]['name']; } -- cgit v1.2.3