
Originally Posted by
allanmorris
Hi DuncanE.
I've added to the 'block', under the // set block www, only. Have just had a look in the 'class' and can't see anything - but it is a big file. Could you give me a clue where to look as it's worth a try. Most students and teachers just put up with the message even though I've let them all know how to stop it so it would be great to stop it happening at all.
Btw, the version I'm using is 2008080500.
Thanks.
Allan.
(Please note the changes are in bold.)
Okay, in smb_web_client.php I have:
Code:
function init() {
global $CFG;
// Set title and version
$this->title = get_string('blockmenutitle', 'block_smb_web_client');
$this->title=$this->title=="[[blockmenutitle]]" ? "Online Documents" : $this->title;
$this->version = 2008080500;
// set block www
$this->blockwww=$CFG->wwwroot.'/blocks/smb_web_client';
$this->blockwww=str_replace("http://", "https://", $this->blockwww);
} In class_smbwebclient.php I have:
Code:
# loads an HTML template
function Template ($file, $vars=array())
{
$result = str_replace(array_keys($vars), array_values($vars), $this->GetInlineFile($file));
$result = str_replace("http://mysiteurl/", "https://mysiteurl/", $result);
return $result;
} I didn't describe it very well - sorry about that - it's actually my additions anyway that refer to the http - it's the template function that needed changing.
I hope that helps,
Duncan.