Run productive API sync in Piwigo admin context

This commit is contained in:
Terranom674
2026-08-17 21:32:09 +02:00
parent 16e4c334bb
commit e25e519e7a

View File

@@ -59,6 +59,11 @@ function bratonien_tools_ws_nc_sync_productive($params, &$service)
try
{
if (!defined('IN_ADMIN'))
{
define('IN_ADMIN', true);
}
$_SERVER['REQUEST_METHOD'] = 'POST';
$_GET = array(
'page' => 'site_update',