feature:2826 missing hardcoded PEM category id in r20449

git-svn-id: http://piwigo.org/svn/trunk@24159 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2013-08-14 21:29:24 +00:00
parent 0639d49126
commit 6eab56e705

View File

@@ -264,8 +264,10 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\'';
// Retrieve PEM versions
function get_versions_to_check($version=PHPWG_VERSION)
{
global $conf;
$versions_to_check = array();
$url = PEM_URL . '/api/get_version_list.php?category=12&format=php';
$url = PEM_URL . '/api/get_version_list.php?category_id='. $conf['pem_plugins_category'] .'&format=php';
if (fetchRemote($url, $result) and $pem_versions = @unserialize($result))
{
if (!preg_match('/^\d+\.\d+\.\d+$/', $version))