check if mime type detection works
[phorkie.git] / src / phorkie / Repository / Post.php
index 39798b57608d36ac1b1ab8fa5cd4604e8dc4322b..c9f6a537ae1016698770382f25cd038f03db445e 100644 (file)
@@ -228,7 +228,7 @@ class Repository_Post
         return $prefix . $num;
     }
 
-    protected function getType($content)
+    public function getType($content)
     {
         $tmp = tempnam(sys_get_temp_dir(), 'phorkie-autodetect-');
         file_put_contents($tmp, $content);