1
0
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:
til-schneider
2015-12-24 21:07:35 +01:00
parent e13a759294
commit 72b9ae7323

View File

@@ -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