mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
N°4642 - Core Update : limit the usage of this function to minor version
This commit is contained in:
@@ -114,7 +114,7 @@ class FilesIntegrity
|
|||||||
if($bCheckNewModule && strpos($aFileInfo['path'],$sSourceDir) === 0){
|
if($bCheckNewModule && strpos($aFileInfo['path'],$sSourceDir) === 0){
|
||||||
$aFilePath = explode('/',$aFileInfo['path']);
|
$aFilePath = explode('/',$aFileInfo['path']);
|
||||||
$sFolderPath = $aFilePath[0].'/'.$aFilePath[1].'/'.$aFilePath[2];
|
$sFolderPath = $aFilePath[0].'/'.$aFilePath[1].'/'.$aFilePath[2];
|
||||||
if (is_dir(APPROOT.'/'.$sFolderPath) && !is_file($sRootPath.$sFolderPath)){
|
if ( !(is_dir(APPROOT.'/'.$sFolderPath)) && !(is_file(APPROOT.'/'.$sFolderPath)) ){
|
||||||
$sLink = utils::GetAbsoluteUrlAppRoot().'setup/';
|
$sLink = utils::GetAbsoluteUrlAppRoot().'setup/';
|
||||||
$sLinkManualUpdate = 'https://www.itophub.io/wiki/page?id='.utils::GetItopVersionWikiSyntax().'%3Ainstall%3Aupgrading_itop#manually';
|
$sLinkManualUpdate = 'https://www.itophub.io/wiki/page?id='.utils::GetItopVersionWikiSyntax().'%3Ainstall%3Aupgrading_itop#manually';
|
||||||
throw new FileIntegrityException(Dict::Format('FilesInformation:Error:CannotUpdateNewModules', $sLink, $sLinkManualUpdate));
|
throw new FileIntegrityException(Dict::Format('FilesInformation:Error:CannotUpdateNewModules', $sLink, $sLinkManualUpdate));
|
||||||
|
|||||||
Reference in New Issue
Block a user