static function ShowErrors() { global $APPLICATION; if (self::$canNotRead) { $aContext = array(array("ICON" => "btn_list", "TEXT" => GetMessage("SUP_BACK_TO_ADMIN"), "LINK" => self::LIST_URL . "?lang=" . LANG, "TITLE" => GetMessage("SUP_BACK_TO_ADMIN"))); $context = new CAdminContextMenu($aContext); $context->Show(); CAdminMessage::ShowMessage(GetMessage("SUP_TIMETABLE_NOT_FOUND")); return true; } if ($e = $APPLICATION->GetException()) { self::$isErrors = true; $errorMessage = new CAdminMessage(GetMessage("SUP_ERROR"), $e); echo $errorMessage->Show(); } return false; }