Archives: refactoring of the API to enable/disable the archive mode

SVN:trunk[4696]
This commit is contained in:
Romain Quetiez
2017-04-26 15:48:24 +00:00
parent a55245d203
commit e3931274ae
8 changed files with 43 additions and 40 deletions

View File

@@ -87,9 +87,7 @@ $oApp->before(function(Symfony\Component\HttpFoundation\Request $oRequest, Silex
}
// Enable archived data
$bArchiveMode = utils::IsArchiveMode();
DBSearch::SetArchiveModeDefault($bArchiveMode);
if ($bArchiveMode) MetaModel::DBSetReadOnly();
utils::InitArchiveMode();
// Enabling datalocalizer if needed
if (!defined('DISABLE_DATA_LOCALIZER_PORTAL'))