]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use HTTPS for scripts and stylesheets if the current page is HTTPS
authorEvan Prodromou <evan@status.net>
Thu, 14 Oct 2010 05:09:02 +0000 (01:09 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 14 Oct 2010 05:09:02 +0000 (01:09 -0400)
lib/htmloutputter.php

index 8d3e815d33837682b19613a510ff61ac210f51d7..f01f1814f02b92a83b9620b5b5c4aded77a1a37d 100644 (file)
@@ -362,7 +362,7 @@ class HTMLOutputter extends XMLOutputter
 
                 if (strpos($src, 'plugins/') === 0 || strpos($src, 'local/') === 0) {
 
-                    $src = common_path($src) . '?version=' . STATUSNET_VERSION;
+                    $src = common_path($src, StatusNet::isHTTPS()) . '?version=' . STATUSNET_VERSION;
 
                 } else {
 
@@ -467,7 +467,7 @@ class HTMLOutputter extends XMLOutputter
                 if(file_exists(Theme::file($src,$theme))){
                    $src = Theme::path($src, $theme);
                 }else{
-                   $src = common_path($src);
+                    $src = common_path($src, StatusNet::isHTTPS());
                 }
                 $src.= '?version=' . STATUSNET_VERSION;
             }