Don't return any news if a theme is enabled

When a non-edX theme is enabled, then don't return anything for "top
news," which is edX-specific.
This commit is contained in:
Nate Hardison
2013-05-31 19:10:48 -07:00
parent 90ebb4c836
commit 34c49e73f7

View File

@@ -1194,6 +1194,10 @@ def accept_name_change(request):
def _get_news(top=None):
"Return the n top news items on settings.RSS_URL"
# Don't return anything if we're in a themed site
if settings.MITX_FEATURES["USE_CUSTOM_THEME"]:
return None
feed_data = cache.get("students_index_rss_feed_data")
if feed_data is None:
if hasattr(settings, 'RSS_URL'):