mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-09-19 11:44:31 +00:00
Run productive API sync in Piwigo admin context
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user