5 require_once(
"Services/Init/classes/class.ilInitialisation.php");
7 $tpl->addBlockFile(
"CONTENT",
"content",
"tpl.error.html");
8 $lng->loadLanguageModule(
"error");
10 $nd = $tree->getNodeData(ROOT_FOLDER_ID);
12 $tpl->SetCurrentBlock(
"ErrorLink");
14 $tpl->SetVariable(
"LINK",
ilUtil::secureUrl(ILIAS_HTTP_PATH .
'/ilias.php?baseClass=ilRepositoryGUI&client_id=' . CLIENT_ID));
15 $tpl->ParseCurrentBlock();
17 $tpl->setCurrentBlock(
"content");
19 $tpl->setVariable(
"MESSAGE_HEADING",
$lng->txt(
'error_sry_error'));
26}
catch (Exception $e) {
27 if (
defined(
'DEVMODE') && DEVMODE) {
31 if (!($e instanceof \PDOException)) {
32 die($e->getMessage());
An exception for terminatinating execution or to throw for unit testing.
static initILIAS()
ilias initialisation
static clear($a_var)
Unset a value.
static secureUrl($url)
Prepare secure href attribute.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'