function _getHeaderTitleDescription() { global $ilDB; $id = ilObjSystemFolder::_getId(); $q = "SELECT title,description FROM object_translation " . "WHERE obj_id = " . $ilDB->quote($id, 'integer') . " " . "AND lang_default = 1"; $r = $this->ilias->db->query($q); $row = $r->fetchRow(DB_FETCHMODE_OBJECT); $description = $row->description; $q = "SELECT title,description FROM object_translation " . "WHERE obj_id = " . $ilDB->quote($id, 'integer') . " " . "AND lang_code = " . $ilDB->quote($this->ilias->account->getPref("language"), 'text') . " " . "AND NOT lang_default = 1"; $r = $this->ilias->db->query($q); $row = $r->fetchRow(DB_FETCHMODE_OBJECT); if ($row) { $description = ilUtil::shortenText($row->description, MAXLENGTH_OBJ_DESC, true); } return $description; }