From 0fe16db123fdee75f8699aacf5ae426cb105e2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Fri, 21 Dec 2012 17:26:36 +0100 Subject: [PATCH] MDL-37233 do not show skype status icon on https sites MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Funny that the same company that implemented the IE security warnings is unable to set up SSL on the Skype status server… --- user/profile.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/user/profile.php b/user/profile.php index 082eaab317e..54d65f21dd7 100644 --- a/user/profile.php +++ b/user/profile.php @@ -297,9 +297,13 @@ if ($user->icq && !isset($hiddenfields['icqnumber'])) { } if ($user->skype && !isset($hiddenfields['skypeid'])) { - print_row(get_string('skypeid').':',''.s($user->skype). - ' '.get_string('status').''); + if (strpos($CFG->httpswwwroot, 'https:') === 0) { + // Bad luck, skype devs are lazy to set up SSL on their servers - see MDL-37233. + $statusicon = ''; + } else { + $statusicon = ' '.html_writer::empty_tag('img', array('src'=>'http://mystatus.skype.com/smallicon/'.urlencode($user->skype), 'alt'=>get_string('status'))); + } + print_row(get_string('skypeid').':',''.s($user->skype).$statusicon.''); } if ($user->yahoo && !isset($hiddenfields['yahooid'])) { print_row(get_string('yahooid').':', ''.s($user->yahoo)." yahoo)."&m=g&t=0\" alt=\"\">");