mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-01 02:52:50 +02:00
feature:2826 missing hardcoded PEM category id in r20449
git-svn-id: http://piwigo.org/svn/trunk@24159 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -264,8 +264,10 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\'';
|
||||
// Retrieve PEM versions
|
||||
function get_versions_to_check($version=PHPWG_VERSION)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$versions_to_check = array();
|
||||
$url = PEM_URL . '/api/get_version_list.php?category=12&format=php';
|
||||
$url = PEM_URL . '/api/get_version_list.php?category_id='. $conf['pem_plugins_category'] .'&format=php';
|
||||
if (fetchRemote($url, $result) and $pem_versions = @unserialize($result))
|
||||
{
|
||||
if (!preg_match('/^\d+\.\d+\.\d+$/', $version))
|
||||
|
||||
Reference in New Issue
Block a user