mirror of
https://github.com/processwire/processwire.git
synced 2025-08-30 01:49:58 +02:00
Fix issue with non-default language pagination segment prefixes when in admin
This commit is contained in:
@@ -200,10 +200,12 @@ class LanguageSupportPageNames extends WireData implements Module, ConfigurableM
|
||||
|
||||
if(strlen($pageNumUrlPrefix)) {
|
||||
$config = $this->wire()->config;
|
||||
if(!$config->admin) {
|
||||
$config->set('_pageNumUrlPrefix', $config->pageNumUrlPrefix); // original/backup url prefix
|
||||
$config->pageNumUrlPrefix = $pageNumUrlPrefix;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Is the given path a site assets path? (i.e. /site/)
|
||||
|
Reference in New Issue
Block a user