mirror of
https://github.com/til-schneider/slim-wiki.git
synced 2025-07-31 13:50:24 +02:00
Fixed: the root article file had extra '/'
This commit is contained in:
@@ -150,7 +150,7 @@ class Main {
|
|||||||
|
|
||||||
// Support `index.md` for directories
|
// Support `index.md` for directories
|
||||||
if (is_dir($articleBaseDir . $articleFilename)) {
|
if (is_dir($articleBaseDir . $articleFilename)) {
|
||||||
$articleFilename = rtrim($articleFilename, '/') . '/index.md';
|
$articleFilename = ltrim($articleFilename . '/index.md', '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make the extension `.md` optional
|
// Make the extension `.md` optional
|
||||||
|
Reference in New Issue
Block a user