mirror of
https://github.com/getgrav/grav.git
synced 2026-02-21 22:18:03 +01:00
just added a comment
This commit is contained in:
@@ -139,6 +139,7 @@ class Uri
|
||||
|
||||
$valid_page_types = implode('|', $config->get('system.pages.types'));
|
||||
|
||||
// Strip the file extension for valid page types
|
||||
if (preg_match("/\.(".$valid_page_types.")$/", $parts['basename'])) {
|
||||
$uri = rtrim(str_replace(DIRECTORY_SEPARATOR, DS, $parts['dirname']), DS). '/' .$parts['filename'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user