Browse Source

update getPagePath filter

main
ghost 9 months ago
parent
commit
85e83f7f49
  1. 13
      src/Dokuwiki/Filesystem.php

13
src/Dokuwiki/Filesystem.php

@ -34,17 +34,20 @@ class Filesystem @@ -34,17 +34,20 @@ class Filesystem
public function getPagePathByUri(string $uri): ?string
{
$uri = urldecode(
$uri
);
$path = sprintf(
'%s/pages/%s.txt',
$this->_path,
str_replace(
':',
'/',
$uri
trim(
mb_strtolower(
urldecode(
$uri
)
),
':'
)
)
);

Loading…
Cancel
Save