|
@@ -54,9 +54,12 @@ class ajax_page extends WebPage implements iTabbedPage
|
|
$this->sContentDisposition = 'inline';
|
|
$this->sContentDisposition = 'inline';
|
|
$this->m_sMenu = "";
|
|
$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 = '')
|
|
public function AddTabContainer($sTabContainer, $sPrefix = '')
|