mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
merge -c3070 from trunk to branch 2.0.
Send user language when retrieving datas from PEM api. git-svn-id: http://piwigo.org/svn/branches/2.0@3071 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user