Fix error with git 2.25.1 complaining about missing committer
[phorkie.git] / src / phorkie / HtmlHelper.php
index d23468547bbb98ab3726d87eff807437e3ee39aa..0a8b926888fca70554bbd56f0d3c2da47957aeca 100644 (file)
@@ -12,6 +12,7 @@ class HtmlHelper
         }
 
         $s = new \Services_Libravatar();
+        $s->detectHttps();
         return $s->url(
             $email,
             array(
@@ -73,6 +74,13 @@ class HtmlHelper
 
         return $logged_in;
     }
+
+    public function getRepositoryEmbedCode(Repository $repo)
+    {
+        return '<script src="' . $repo->getLink('embed', null, true) . '"'
+            . ' id="phork-script-' . $repo->id . '"'
+            . ' type="text/javascript"></script>';
+    }
 }
 
 ?>