From 8d4d90d445cc0b0032e0f76ab98cac5a5a29df66 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 4 Jul 2014 07:39:32 +0200 Subject: make mime_type_plaindetect work in .phar files --- src/phorkie/Repository/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/phorkie/Repository/Post.php') diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php index c9f6a53..fbfea4b 100644 --- a/src/phorkie/Repository/Post.php +++ b/src/phorkie/Repository/Post.php @@ -232,7 +232,7 @@ class Repository_Post { $tmp = tempnam(sys_get_temp_dir(), 'phorkie-autodetect-'); file_put_contents($tmp, $content); - $type = \MIME_Type_PlainDetect::autoDetect($tmp); + $type = Tool_MIME_Type_PlainDetect::autoDetect($tmp); unlink($tmp); return $this->findExtForType($type); -- cgit v1.2.3