mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 00:37:02 +02:00
Fix issue processwire/processwire-issues#1648
This commit is contained in:
@@ -1536,7 +1536,7 @@ class Page extends WireData implements \Countable, WireMatchable {
|
||||
*/
|
||||
public function setName($value, $language = null) {
|
||||
|
||||
if(!$this->isLoaded && empty($language) && is_string($value)) {
|
||||
if(!$this->isLoaded && empty($language) && is_string($value) && strpos($value, 'xn-') !== 0) {
|
||||
$this->settings['name'] = $value;
|
||||
} else {
|
||||
$this->values()->setName($this, $value, $language);
|
||||
|
Reference in New Issue
Block a user