diff options
Diffstat (limited to 'common.php')
-rw-r--r-- | common.php | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -30,6 +30,17 @@ function EndsWith($line, $c) return substr($line, -1) == $c; } +function IsMarkdown($fname) +{ + switch(pathinfo($fname, PATHINFO_EXTENSION)) + { + case 'md': + return True; + } + + return False; +} + function GuessMimeType($fname) { switch(pathinfo($fname, PATHINFO_EXTENSION)) |