mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 14:28:53 +02:00
Fix indexation script and protection for concurrency with cron
This commit is contained in:
@@ -10,10 +10,12 @@ use Combodo\iTop\CoreUpdate\Controller\UpdateController;
|
||||
use ContextTag;
|
||||
|
||||
require_once(APPROOT.'application/startup.inc.php');
|
||||
new ContextTag(ContextTag::TAG_SETUP);
|
||||
$oCtxCoreUpdate = new ContextTag(ContextTag::TAG_SETUP);
|
||||
|
||||
$oUpdateController = new UpdateController(MODULESROOT.'itop-core-update/view', 'itop-core-update');
|
||||
$oUpdateController->DisableInDemoMode();
|
||||
$oUpdateController->AllowOnlyAdmin();
|
||||
$oUpdateController->SetDefaultOperation('SelectUpdateFile');
|
||||
$oUpdateController->HandleOperation();
|
||||
|
||||
unset($oCtxCoreUpdate);
|
||||
|
||||
Reference in New Issue
Block a user