From 5517560b7084bb7c0e4f9172d18b99c66cafa7ff Mon Sep 17 00:00:00 2001 From: Josua2012 Date: Fri, 1 Feb 2013 19:00:09 +0100 Subject: [PATCH] Fix Object::has_extension('xx', 'xx') deprecated --- code/BlogHolder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/BlogHolder.php b/code/BlogHolder.php index aa6ad98..d7c54c4 100644 --- a/code/BlogHolder.php +++ b/code/BlogHolder.php @@ -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; }