WIKI CUSTOM - automatically use .md file when it exists
This commit is contained in:
parent
8f58648ab1
commit
2ea1703f06
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue