+ // TRANS: Client error displayed trying to save site settings without a valid contact address.
+ $this->clientError(_('Not a valid email address.'));
+ }
+
+ // Validate logos
+ if (!empty($values['site']['logo']) &&
+ !Validate::uri($values['site']['logo'], array('allowed_schemes' => array('http', 'https')))) {
+ // TRANS: Client error displayed when a logo URL is not valid.
+ $this->clientError(_('Invalid logo URL.'));
+ }
+
+ if (!empty($values['site']['ssllogo']) &&
+ !Validate::uri($values['site']['ssllogo'], array('allowed_schemes' => array('https')))) {
+ // TRANS: Client error displayed when a SSL logo URL is invalid.
+ $this->clientError(_('Invalid SSL logo URL.'));