vtenext/cron/modules/MassEdit/MassEdit.service.php
2021-04-28 20:10:26 +02:00

24 lines
571 B
PHP

<?php
/*************************************
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
* SPDX-License-Identifier: AGPL-3.0-only
************************************/
/* crmv@91571 */
require_once('include/utils/MassEditUtils.php');
// this is to run the process directly from the terminal
$importid = intval($_REQUEST['massid']);
$MUtils = MassEditUtils::getInstance();
$r = true;
if ($importid > 0) {
$r = $MUtils->processCron($importid);
} else {
$r = $MUtils->processCron();
}
if (!$r) {
echo "Error during the MassEdit.\n";
}