]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use HTTPS for favicon.ico if page is HTTPS
authorEvan Prodromou <evan@status.net>
Thu, 14 Oct 2010 04:50:26 +0000 (00:50 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 14 Oct 2010 04:50:26 +0000 (00:50 -0400)
lib/action.php

index b05770b152618c53c17c4498b4dece1ebb1bc3b9..fcac0e0a7fdd73f15901bc64942b8b78e3877d5b 100644 (file)
@@ -175,8 +175,9 @@ class Action extends HTMLOutputter // lawsuit
             $this->element('link', array('rel' => 'shortcut icon',
                                          'href' => Theme::path('favicon.ico')));
         } else {
+            // favicon.ico should be HTTPS if the rest of the page is
             $this->element('link', array('rel' => 'shortcut icon',
-                                         'href' => common_path('favicon.ico')));
+                                         'href' => common_path('favicon.ico', StatusNet::isHTTPS())));
         }
 
         if (common_config('site', 'mobile')) {