mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +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;
|
use ContextTag;
|
||||||
|
|
||||||
require_once(APPROOT.'application/startup.inc.php');
|
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 = new UpdateController(MODULESROOT.'itop-core-update/view', 'itop-core-update');
|
||||||
$oUpdateController->DisableInDemoMode();
|
$oUpdateController->DisableInDemoMode();
|
||||||
$oUpdateController->AllowOnlyAdmin();
|
$oUpdateController->AllowOnlyAdmin();
|
||||||
$oUpdateController->SetDefaultOperation('SelectUpdateFile');
|
$oUpdateController->SetDefaultOperation('SelectUpdateFile');
|
||||||
$oUpdateController->HandleOperation();
|
$oUpdateController->HandleOperation();
|
||||||
|
|
||||||
|
unset($oCtxCoreUpdate);
|
||||||
|
|||||||
Reference in New Issue
Block a user