Browse Source

small bug fix

pull/76/head
Kanti 11 years ago
parent
commit
0ef08de74c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      system/includes/functions.php

+ 3
- 0
system/includes/functions.php View File

@ -1055,6 +1055,9 @@ function get_title_from_file($v)
// Get the contents and convert it to HTML
$content = MarkdownExtra::defaultTransform(file_get_contents($v));
$replaced = substr($v, 0, strrpos($v, '/')) . '/';
$base = str_replace($replaced, '', $v);
// Extract the title and body
return get_content_tag('t',$content,str_replace('-', ' ', str_replace('.md', '', $base)));
}


Loading…
Cancel
Save