mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
- If there is not new plugins to check, we don't get any more error message.
- small corrections in configuration.html and cat_modify.tpl. git-svn-id: http://piwigo.org/svn/trunk@2701 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -25,7 +25,7 @@ class plugins
|
||||
{
|
||||
var $fs_plugins = array();
|
||||
var $db_plugins_by_id = array();
|
||||
var $server_plugins;
|
||||
var $server_plugins = array();
|
||||
|
||||
/**
|
||||
* Initialize $fs_plugins and $db_plugins_by_id
|
||||
@@ -302,14 +302,19 @@ 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);
|
||||
|
||||
if (!empty($plugins_to_check))
|
||||
{
|
||||
$url .= $new ? '&extension_exclude=' : '&extension_include=';
|
||||
$url .= implode(',', $plugins_to_check);
|
||||
}
|
||||
if ($source = @file_get_contents($url)
|
||||
and $pem_plugins = @unserialize($source))
|
||||
if ($source = @file_get_contents($url))
|
||||
{
|
||||
$pem_plugins = @unserialize($source);
|
||||
if (!is_array($pem_plugins))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
foreach ($pem_plugins as $plugin)
|
||||
{
|
||||
$this->server_plugins[$plugin['extension_id']] = $plugin;
|
||||
|
||||
Reference in New Issue
Block a user