Skip to content
Snippets Groups Projects
Commit b783d40f authored by Denis Walker's avatar Denis Walker
Browse files

Adds underscore support to contents pages

parent 29186213
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ function listdir($mypath, $recurse, $summaries) {
if (!is_dir($base."static".$mypath."/".$file)) {
$pagename = ereg_replace("\.txt", "", $file);
if ($summaries) $element['summary'] = $DB->GetOne("select summary from static where path=?", array($mypath."/".$pagename));
if ($pagename!=@$lastdir) $output[$pagename]=$element;
if ($pagename!=@$lastdir) $output[$pagename]=str_replace("_", " ", $element);
} else {
if ($recurse) $element['file']=listdir($mypath."/".$file, $recurse, $summaries);
if ($summaries) $element['summary'] = $DB->GetOne("select summary from static where path=?", array($mypath."/".$file));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment