diff --git a/codepot/src/codepot/views/code_file.php b/codepot/src/codepot/views/code_file.php index 46ae51f2..ccabccbe 100644 --- a/codepot/src/codepot/views/code_file.php +++ b/codepot/src/codepot/views/code_file.php @@ -63,10 +63,16 @@ } } if ($octet_stream) $is_special_stream = TRUE; + + if (!$is_special_stream) goto check_for_wiki; } - else if (in_array($fileext, array('md', 'wc'))) + else { - $is_wiki_file = TRUE; + check_for_wiki: + if (in_array($fileext, array('md', 'wc'))) + { + $is_wiki_file = TRUE; + } } ?> @@ -672,7 +678,7 @@ $(function () { }); - + render_wiki_wc ();