Skip to content

Commit

Permalink
LPS-46984 SF
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Nov 17, 2014
1 parent 84e3921 commit 94e53c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion portal-web/docroot/html/portlet/rss/configuration.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@
<aui:fieldset cssClass="subscriptions">

<%
String[] titles = rssDisplayContext.getTitles();
String[] urls = rssDisplayContext.getURLs();
if (urls.length == 0) {
urls = new String[1];
urls[0] = StringPool.BLANK;
}
String[] titles = rssDisplayContext.getTitles();
for (int i = 0; i < urls.length; i++) {
String title = StringPool.BLANK;
Expand Down
8 changes: 4 additions & 4 deletions portal-web/docroot/html/portlet/rss/feed.jspf
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ SyndFeed syndFeed = rssFeedContext.getSyndFeed();
</c:if>

<%
List entries = syndFeed.getEntries();
List syndEntries = syndFeed.getEntries();
%>

<c:if test="<%= !entries.isEmpty() %>">
<c:if test="<%= !syndEntries.isEmpty() %>">
<liferay-ui:panel-container cssClass="feed-entries" extended="<%= false %>" id="rssFeedsPanelContainer" persistState="<%= false %>">

<%
for (int j = 0; (j < entries.size()) && (j < rssDisplayContext.getEntriesPerFeed()); j++) {
SyndEntry syndEntry = (SyndEntry)entries.get(j);
for (int j = 0; (j < syndEntries.size()) && (j < rssDisplayContext.getEntriesPerFeed()); j++) {
SyndEntry syndEntry = (SyndEntry)syndEntries.get(j);

RSSFeedEntryDisplayContext rssFeedEntryDisplayContext = new RSSFeedEntryDisplayContext(syndEntry, request, rssFeedContext);
%>
Expand Down
3 changes: 1 addition & 2 deletions portal-web/docroot/html/portlet/rss/view.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
<div id="<portlet:namespace />feedsContainer">

<%
List<RSSFeedContext> rssFeedContexts =
rssDisplayContext.getRSSFeedContexts();
List<RSSFeedContext> rssFeedContexts = rssDisplayContext.getRSSFeedContexts();
for (int i = 0; i < rssFeedContexts.size(); i++) {
RSSFeedContext rssFeedContext = rssFeedContexts.get(i);
Expand Down

0 comments on commit 94e53c9

Please sign in to comment.