aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/include/languages.class.php4
-rw-r--r--admin/include/plugins.class.php8
-rw-r--r--admin/include/themes.class.php4
3 files changed, 9 insertions, 7 deletions
diff --git a/admin/include/languages.class.php b/admin/include/languages.class.php
index 36f946fd1..6a7262bb0 100644
--- a/admin/include/languages.class.php
+++ b/admin/include/languages.class.php
@@ -217,10 +217,10 @@ UPDATE '.USER_INFOS_TABLE.'
*/
function get_server_languages($new=false)
{
- global $user;
+ global $user, $conf;
$get_data = array(
- 'category_id' => 8,
+ 'category_id' => $conf['pem_languages_category'],
'format' => 'php',
);
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),
diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php
index 4b42af3be..654d220ef 100644
--- a/admin/include/themes.class.php
+++ b/admin/include/themes.class.php
@@ -454,10 +454,10 @@ SELECT
*/
function get_server_themes($new=false)
{
- global $user;
+ global $user, $conf;
$get_data = array(
- 'category_id' => 10,
+ 'category_id' => $conf['pem_themes_category'],
'format' => 'php',
);