$maintitle .= $current_portal_item->getTitle(); } $owner_user_item = $context_item->getOwnerUserItem(); $owner_fullname = $owner_user_item->getFullName(); if (!empty($owner_fullname)) { if (!empty($maintitle)) { $maintitle .= ': '; } $maintitle .= $owner_fullname; } unset($owner_user_item); unset($current_portal_item); } else { $maintitle = $context_item->getTitle(); } $language = $environment->getSelectedLanguage(); $maintitle = str_replace('&', '&', $maintitle); $rss = '<?xml version="1.0" encoding="utf-8"?> <rss version="2.0"> <channel> <title>' . $translator->getMessage('RSS_TITLE', $maintitle) . '</title> <link>' . $path . $c_single_entry_point . '</link> <ttl>60</ttl> <description>' . $translator->getMessage('RSS_DESCRIPTION', $maintitle) . '</description> <language>' . $context_item->getLanguage() . '</language> <copyright>-</copyright> <pubDate>' . $date . '</pubDate> <image> <url>' . $path . 'images/commsy_logo_transparent.gif</url>