diff options
author | mistic100 <mistic@piwigo.org> | 2013-08-14 21:29:24 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2013-08-14 21:29:24 +0000 |
commit | 6eab56e705c34cf2e02b6946f92ddf3e6408ad32 (patch) | |
tree | 50cce5bf74300239d30f86d2291126adcec79bbd /admin/include | |
parent | 0639d49126236efe04012b3767fe05c01c34d875 (diff) |
feature:2826 missing hardcoded PEM category id in r20449
git-svn-id: http://piwigo.org/svn/trunk@24159 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/include/plugins.class.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php index 36f47924b..ca4aa161c 100644 --- a/admin/include/plugins.class.php +++ b/admin/include/plugins.class.php @@ -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)) |