mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
fixes #1587 do not register a login activity for pwg.images.uploadAsync
This commit is contained in:
@@ -530,6 +530,12 @@ function pwg_activity($object, $object_id, $action, $details=array())
|
||||
{
|
||||
global $user;
|
||||
|
||||
// in case of uploadAsync, do not log the automatic login as an independant activity
|
||||
if (isset($_REQUEST['method']) and 'pwg.images.uploadAsync' == $_REQUEST['method'] and 'login' == $action)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$object_ids = $object_id;
|
||||
if (!is_array($object_id))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user