NIHVIVO-173 Hide contact link when no SMTP host is configured.

This commit is contained in:
bdc34 2010-03-31 19:26:13 +00:00
parent 720364b949
commit f935249374
2 changed files with 4 additions and 6 deletions

View file

@ -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;
}

View file

@ -1,6 +1,4 @@
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
<!-- -->
<!-- /* $This file is distributed under the terms of the license in /doc/license.txt$ */ -->
<script language="JavaScript" type="text/javascript">
<!--