summaryrefslogtreecommitdiff
path: root/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'common.php')
-rw-r--r--common.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/common.php b/common.php
index 9bd8272..1e10349 100644
--- a/common.php
+++ b/common.php
@@ -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))