mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 18:26:06 +02:00
Fixed regex to not pick up multilang page files when no multilang enabled.
This commit is contained in:
@@ -860,7 +860,7 @@ class Pages
|
||||
if ($found->isDir()) {
|
||||
continue;
|
||||
}
|
||||
$regex = '/' . preg_quote($extension) . '$/';
|
||||
$regex = '/^[^\.]*' . preg_quote($extension) . '$/';
|
||||
if (preg_match($regex, $found->getFilename())) {
|
||||
$page_found = $found;
|
||||
$page_extension = $extension;
|
||||
|
||||
Reference in New Issue
Block a user