diff options
author | mistic100 <mistic@piwigo.org> | 2013-01-29 17:35:23 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2013-01-29 17:35:23 +0000 |
commit | 4708e6c75e7a681b44a5cd3631209dc64a5fbc1b (patch) | |
tree | fb7c86bc2a012ea24d6b49514658faddf3edca5f /admin/include/plugins.class.php | |
parent | ec235d488e6c241ab00998a64549ca5ee0372fe7 (diff) |
feature:2826
git-svn-id: http://piwigo.org/svn/trunk@20449 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/plugins.class.php')
-rw-r--r-- | admin/include/plugins.class.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php index a75160b02..3c0cb6ffa 100644 --- a/admin/include/plugins.class.php +++ b/admin/include/plugins.class.php @@ -292,7 +292,7 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\''; */ function get_server_plugins($new=false) { - global $user; + global $user, $conf; $versions_to_check = $this->get_versions_to_check(); if (empty($versions_to_check)) @@ -313,7 +313,7 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\''; // Retrieve PEM plugins infos $url = PEM_URL . '/api/get_revision_list.php'; $get_data = array( - 'category_id' => 12, + 'category_id' => $conf['pem_plugins_category'], 'format' => 'php', 'last_revision_only' => 'true', 'version' => implode(',', $versions_to_check), @@ -363,6 +363,8 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\''; { return false; } + + global $conf; // Plugins to check $plugins_to_check = array(); @@ -377,7 +379,7 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\''; // Retrieve PEM plugins infos $url = PEM_URL . '/api/get_revision_list.php'; $get_data = array( - 'category_id' => 12, + 'category_id' => $conf['pem_plugins_category'], 'format' => 'php', 'version' => implode(',', $versions_to_check), 'extension_include' => implode(',', $plugins_to_check), |