Commit 34c49e73 by Nate Hardison

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.
parent 90ebb4c8
......@@ -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'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment