Links to theme images on https pages produce warnings

Links to theme images on https pages produce warnings

by Matt Gibson -
Number of replies: 2
Hi,

I'm getting the 'some of the items on this page are insecure, do you want to display insecure items' warning in IE. I've found its because my theme header has a link to an image at
<?php echo $CFG->wwwroot.'/theme/'.currenttheme().'image.jpg' ?>Is there a way to get it to work well with login_https?

Matt
Average of ratings: -
In reply to Matt Gibson

Re: Links to theme images on https pages produce warnings

by Jeffery Watkins -
I use this:



<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>

Jeff
In reply to Jeffery Watkins

Re: Links to theme images on https pages produce warnings

by Matt Gibson -
Yeah, I saw that somewhere in moodle docs, but how do you get it to happen only on the login and edit user profile pages and not others?