Fix Object::has_extension('xx', 'xx') deprecated

This commit is contained in:
Josua2012 2013-02-01 19:00:09 +01:00
parent ff439a5ac0
commit 5517560b70
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}