mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-11-05 01:22:14 +00:00
Run productive API sync in Piwigo admin context
This commit is contained in:
1 parent
16e4c334bb
commit
e25e519e7a
1 file changed
+5
@@ -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