From f935249374dd3d2ce6971de173a54e2528095f48 Mon Sep 17 00:00:00 2001 From: bdc34 Date: Wed, 31 Mar 2010 19:26:13 +0000 Subject: [PATCH] NIHVIVO-173 Hide contact link when no SMTP host is configured. --- .../mannlib/vitro/webapp/controller/ContactMailServlet.java | 6 +++--- webapp/web/js/commentsForm.js | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/ContactMailServlet.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/ContactMailServlet.java index 895e2c230..18ccf5ddf 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/ContactMailServlet.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/ContactMailServlet.java @@ -50,12 +50,12 @@ public class ContactMailServlet extends VitroHttpServlet { return true; } - private String getSmtpHostFromProperties() { + public static String getSmtpHostFromProperties() { String host = ConfigurationProperties.getProperty("Vitro.smtpHost"); if (host != null && !host.equals("")) { - LOG.info("Found Vitro.smtpHost value of " + host); + LOG.debug("Found Vitro.smtpHost value of " + host); } else { - System.out.println("No Vitro.smtpHost specified"); + LOG.debug("No Vitro.smtpHost specified"); } return (host != null && host.length() > 0) ? host : null; } diff --git a/webapp/web/js/commentsForm.js b/webapp/web/js/commentsForm.js index 2f5a9f2ad..a6badb527 100644 --- a/webapp/web/js/commentsForm.js +++ b/webapp/web/js/commentsForm.js @@ -1,6 +1,4 @@ -/* $This file is distributed under the terms of the license in /doc/license.txt$ */ - - +