1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 01:04:16 +02:00

Continued updates to PagesRequest, PagesPathFinder, LanguageSupportPageNames, ProcessPageView and related modules

This commit is contained in:
Ryan Cramer
2021-10-08 15:52:07 -04:00
parent 5ed2e3047e
commit aa4fbd4dd9
6 changed files with 766 additions and 311 deletions

View File

@@ -2587,7 +2587,7 @@ class PageFinder extends Wire {
}
if($langNames) {
$module = $this->languages->pageNames();
if($module) $selectorValue = $module->updatePath($selectorValue);
if($module) $selectorValue = $module->removeLanguageSegment($selectorValue);
}
$parts = explode('/', rtrim($selectorValue, '/'));
$part = $sanitizer->pageName(array_pop($parts), Sanitizer::toAscii);