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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue