NIHVIVO-173 Hide contact link when no SMTP host is configured.
This commit is contained in:
parent
720364b949
commit
f935249374
2 changed files with 4 additions and 6 deletions
|
@ -50,12 +50,12 @@ public class ContactMailServlet extends VitroHttpServlet {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getSmtpHostFromProperties() {
|
public static String getSmtpHostFromProperties() {
|
||||||
String host = ConfigurationProperties.getProperty("Vitro.smtpHost");
|
String host = ConfigurationProperties.getProperty("Vitro.smtpHost");
|
||||||
if (host != null && !host.equals("")) {
|
if (host != null && !host.equals("")) {
|
||||||
LOG.info("Found Vitro.smtpHost value of " + host);
|
LOG.debug("Found Vitro.smtpHost value of " + host);
|
||||||
} else {
|
} else {
|
||||||
System.out.println("No Vitro.smtpHost specified");
|
LOG.debug("No Vitro.smtpHost specified");
|
||||||
}
|
}
|
||||||
return (host != null && host.length() > 0) ? host : null;
|
return (host != null && host.length() > 0) ? host : null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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">
|
<script language="JavaScript" type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
|
|
Loading…
Add table
Reference in a new issue