mirror of
https://github.com/til-schneider/slim-wiki.git
synced 2025-02-06 05:48:26 +01:00
Fixed: the root article file had extra '/'
This commit is contained in:
parent
e13a759294
commit
72b9ae7323
@ -150,7 +150,7 @@ class Main {
|
||||
|
||||
// Support `index.md` for directories
|
||||
if (is_dir($articleBaseDir . $articleFilename)) {
|
||||
$articleFilename = rtrim($articleFilename, '/') . '/index.md';
|
||||
$articleFilename = ltrim($articleFilename . '/index.md', '/');
|
||||
}
|
||||
|
||||
// Make the extension `.md` optional
|
||||
|
Loading…
x
Reference in New Issue
Block a user