1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-29 09:29:55 +02:00

Fix issue with non-default language pagination segment prefixes when in admin

This commit is contained in:
Ryan Cramer
2021-10-28 13:39:54 -04:00
parent a82ee80c41
commit a16c43f010

View File

@@ -200,8 +200,10 @@ class LanguageSupportPageNames extends WireData implements Module, ConfigurableM
if(strlen($pageNumUrlPrefix)) { if(strlen($pageNumUrlPrefix)) {
$config = $this->wire()->config; $config = $this->wire()->config;
$config->set('_pageNumUrlPrefix', $config->pageNumUrlPrefix); // original/backup url prefix if(!$config->admin) {
$config->pageNumUrlPrefix = $pageNumUrlPrefix; $config->set('_pageNumUrlPrefix', $config->pageNumUrlPrefix); // original/backup url prefix
$config->pageNumUrlPrefix = $pageNumUrlPrefix;
}
} }
} }