Return-Path: X-Original-To: apmail-allura-commits-archive@www.apache.org Delivered-To: apmail-allura-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFBA018F58 for ; Wed, 27 Jan 2016 20:22:50 +0000 (UTC) Received: (qmail 98230 invoked by uid 500); 27 Jan 2016 20:22:16 -0000 Delivered-To: apmail-allura-commits-archive@allura.apache.org Received: (qmail 98192 invoked by uid 500); 27 Jan 2016 20:22:16 -0000 Mailing-List: contact commits-help@allura.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@allura.apache.org Delivered-To: mailing list commits@allura.apache.org Received: (qmail 97730 invoked by uid 99); 27 Jan 2016 20:22:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2016 20:22:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 17937E38CE; Wed, 27 Jan 2016 20:22:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: heiths@apache.org To: commits@allura.apache.org Date: Wed, 27 Jan 2016 20:22:27 -0000 Message-Id: <5b7b78b1efed41eaa48dbc24f03c1331@git.apache.org> In-Reply-To: <17bf6e07ce0a4b519e8fbfb3ef002407@git.apache.org> References: <17bf6e07ce0a4b519e8fbfb3ef002407@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [13/50] allura git commit: [#8044] remove unnecessary c.app check, since the c.app.config usage is moved out of this function now [#8044] remove unnecessary c.app check, since the c.app.config usage is moved out of this function now Project: http://git-wip-us.apache.org/repos/asf/allura/repo Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/5adc337e Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/5adc337e Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/5adc337e Branch: refs/heads/hs/8035 Commit: 5adc337eb4fffd14f8c6a7f33c4bf4840d67f8b2 Parents: 1ec256c Author: Dave Brondsema Authored: Wed Jan 27 12:37:09 2016 -0500 Committer: Dave Brondsema Committed: Wed Jan 27 12:37:38 2016 -0500 ---------------------------------------------------------------------- Allura/allura/lib/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/allura/blob/5adc337e/Allura/allura/lib/plugin.py ---------------------------------------------------------------------- diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py index e76c53c..1c65a10 100644 --- a/Allura/allura/lib/plugin.py +++ b/Allura/allura/lib/plugin.py @@ -1324,7 +1324,7 @@ class ThemeProvider(object): if note.page_regex and re.search(note.page_regex, url) is None: return None - if note.page_tool_type and (c.app is None or tool_name.lower() != note.page_tool_type.lower()): + if note.page_tool_type and tool_name.lower() != note.page_tool_type.lower(): return None cookie = site_notification_cookie_value.split('-')