Archives: regression (warning during the setup)

SVN:trunk[4693]
This commit is contained in:
Romain Quetiez
2017-04-26 10:27:25 +00:00
parent fa2fd6dcdf
commit 9cc583c47b

View File

@@ -54,9 +54,12 @@ class ajax_page extends WebPage implements iTabbedPage
$this->sContentDisposition = 'inline';
$this->m_sMenu = "";
$bArchiveMode = utils::IsArchiveMode();
DBSearch::SetArchiveModeDefault($bArchiveMode);
if ($bArchiveMode) MetaModel::DBSetReadOnly();
if (class_exists('DBSearch')) // This class does not exist in the contect of the setup page
{
$bArchiveMode = utils::IsArchiveMode();
DBSearch::SetArchiveModeDefault($bArchiveMode);
if ($bArchiveMode) MetaModel::DBSetReadOnly();
}
}
public function AddTabContainer($sTabContainer, $sPrefix = '')