just added a comment

This commit is contained in:
Andy Miller
2015-11-16 21:33:01 -07:00
parent 3cf6e8762c
commit c22fae0d3d

View File

@@ -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'];
}