Commit 3ca9c545 authored by Nigel McNie's avatar Nigel McNie
Browse files

I18nise a couple of language strings that were hardcoded as english.

parent 576ca63e
......@@ -900,10 +900,10 @@ class PublicKey {
$this->certificate = $keystring;
if ($this->credentials == false) {
throw new CryptException('This is not a valid SSL Certificate: '.$keystring, 1);
throw new CryptException(get_string('errornotvalidsslcertificate', 'auth'), 1);
return false;
} elseif ($this->credentials['subject']['CN'] != $this->wwwroot) {
throw new CryptException('This certificate does not match the server it claims to represent: '.$this->credentials['subject']['CN'] .', '. $this->wwwroot, 1);
throw new CryptException(get_string('errorcertificateinvalidwwwroot', 'auth', $this->credentials['subject']['CN'], $this->wwwroot), 1);
return false;
} else {
return $this->credentials;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment