From fe4cb39742be2a171cfe125e50f104de61c4dd12 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Thu, 31 Jul 2008 14:53:27 +0000 Subject: [PATCH] MDL-15148 When replacing key pair, lookup wwwroot again (it might have been changed) --- mnet/environment.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mnet/environment.php b/mnet/environment.php index 982579b87f7..8734cc73faf 100644 --- a/mnet/environment.php +++ b/mnet/environment.php @@ -148,9 +148,11 @@ class mnet_environment { } function replace_keys() { + global $CFG; $this->keypair = array(); $this->keypair = mnet_generate_keypair(); $this->public_key = $this->keypair['certificate']; + $this->wwwroot = $CFG->wwwroot; $details = openssl_x509_parse($this->public_key); $this->public_key_expires = $details['validTo_time_t'];