WIKI CUSTOM - automatically use .md file when it exists

This commit is contained in:
Andy Williams 2017-11-02 16:37:40 +00:00
parent 8f58648ab1
commit 2ea1703f06
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ function getID($param='id',$clean=true){
if($clean) $id = cleanID($id);
if(empty($id) && $param=='id') $id = $conf['start'];
if(page_exists($id.'.md'))
return $id.'.md';
return $id;
}