From 34c49e73f715faf8672d8efcc4aae2985e73f509 Mon Sep 17 00:00:00 2001 From: Nate Hardison Date: Fri, 31 May 2013 19:10:48 -0700 Subject: [PATCH] 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. --- common/djangoapps/student/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index 463ad33316..474581c688 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -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'):