Fixed bug where autodetect fails, wrong default set.
authorStephen Lang <info@skl.me>
Wed, 22 Aug 2012 12:54:09 +0000 (13:54 +0100)
committerStephen Lang <info@skl.me>
Wed, 22 Aug 2012 12:54:09 +0000 (13:54 +0100)
src/phorkie/Repository/Post.php

index fe2372f..de987e0 100644 (file)
@@ -197,7 +197,7 @@ class Repository_Post
 
     protected function findExtForType($type)
     {
-        $ext = 'text/plain';
+        $ext = 'txt';
         foreach ($GLOBALS['phorkie']['languages'] as $lext => $arLang) {
             if ($arLang['mime'] == $type) {
                 $ext = $lext;