mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fix Object::has_extension('xx', 'xx') deprecated
This commit is contained in:
parent
ff439a5ac0
commit
5517560b70
@ -294,7 +294,8 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
||||
|
||||
$blogentry->Content = str_replace("\r\n", "\n", $form->Fields()->fieldByName('BlogPost')->dataValue());
|
||||
|
||||
if(Object::has_extension($this->ClassName, 'Translatable')) {
|
||||
$className = $this->ClassName;
|
||||
if($className::has_extension('Translatable')) {
|
||||
$blogentry->Locale = $this->Locale;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user