diff options
author | patdenice <patdenice@piwigo.org> | 2009-01-13 00:38:02 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2009-01-13 00:38:02 +0000 |
commit | 151da2c893bcb42d446645bd4a5844f9064658b9 (patch) | |
tree | 1ce22dec71a352af5b68d3f5ab8cfaa98a1c1201 /admin/include | |
parent | b6f3cfe567e7a50cef2d5d53847d15a262a86256 (diff) |
Send user language when retrieving datas from PEM api.
git-svn-id: http://piwigo.org/svn/trunk@3070 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r-- | admin/include/plugins.class.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php index 821176870..d746298df 100644 --- a/admin/include/plugins.class.php +++ b/admin/include/plugins.class.php @@ -264,6 +264,8 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"'; */ function get_server_plugins($new=false) { + global $user; + // Retrieve PEM versions $version = PHPWG_VERSION; $versions_to_check = array(); @@ -301,6 +303,7 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"'; // Retrieve PEM plugins infos $url = PEM_URL . '/api/get_revision_list.php?category_id=12&format=php&last_revision_only=true'; $url .= '&version=' . implode(',', $versions_to_check); + $url .= '&lang=' . substr($user['language'], 0, 2); if (!empty($plugins_to_check)) { |