mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Minor performance improvement
Don't bother retrieving the translated URL at construction time, it will be run through the translator during the validation process so there's no need to always hit the translator on every single Page model being loaded.
This commit is contained in:
parent
aff120fcec
commit
8eb045f2d1
@ -56,7 +56,7 @@ class Page extends CmsCompoundObject
|
||||
parent::__construct($attributes);
|
||||
|
||||
$this->customMessages = [
|
||||
'url.regex' => Lang::get('cms::lang.page.invalid_url')
|
||||
'url.regex' => 'cms::lang.page.invalid_url',
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user