mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-09-19 12:54: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
|
try
|
||||||
{
|
{
|
||||||
|
if (!defined('IN_ADMIN'))
|
||||||
|
{
|
||||||
|
define('IN_ADMIN', true);
|
||||||
|
}
|
||||||
|
|
||||||
$_SERVER['REQUEST_METHOD'] = 'POST';
|
$_SERVER['REQUEST_METHOD'] = 'POST';
|
||||||
$_GET = array(
|
$_GET = array(
|
||||||
'page' => 'site_update',
|
'page' => 'site_update',
|
||||||
|
|||||||
Reference in New Issue
Block a user