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 fe2372f67a1f80a50c60fa2ae12484966024c29d..de987e0a74fe07e70245c7cbd53df8e99957399d 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;