mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 13:08:45 +02:00
Merge remote-tracking branch 'origin/support/2.7' into develop
# Conflicts: # core/dbobject.class.php # core/log.class.inc.php # setup/compiler.class.inc.php
This commit is contained in:
@@ -64,6 +64,14 @@ class MFCompiler
|
||||
/** @var \ThemeHandlerService */
|
||||
protected static $oThemeHandlerService;
|
||||
|
||||
/**
|
||||
* Path to the "calculate hKeys" file
|
||||
* If this file is present, then we don't recalculate hkeys
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const REBUILD_HKEYS_NEVER= APPROOT.'data/.setup-rebuild-hkeys-never';
|
||||
|
||||
/** @var \ModelFactory */
|
||||
protected $oFactory;
|
||||
|
||||
@@ -167,6 +175,20 @@ class MFCompiler
|
||||
unlink(static::USE_SYMBOLIC_LINKS_FILE_PATH);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool possible return values :
|
||||
* * if flag is present true, false otherwise
|
||||
*
|
||||
* @uses \file_exists()
|
||||
* @uses REBUILD_HKEYS_NEVER
|
||||
*
|
||||
* @since 2.7.5
|
||||
*/
|
||||
public static function SkipRebuildHKeys(): bool
|
||||
{
|
||||
return (file_exists(static::REBUILD_HKEYS_NEVER));
|
||||
}
|
||||
|
||||
/**
|
||||
* Compile the data model into PHP files and data structures
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user