FIXED: Object::has_extension deprecated('xxxxxx','xxxxxxx') #92

Merged
merged 1 commit into from Feb 1, 2013

Conversation

Projects
None yet
2 participants
Contributor

Josua2012 commented Feb 1, 2013

Hi!

The following lines are deprecated:
TranslatableCMSMainExtension.php (Line 92)

if($form->getName() == 'RootForm' && Object::has_extension('SiteConfig',"Translatable")) {

TranslatableCMSMainExtension.php (Line 214)

return Object::has_extension('SiteTree', 'Translatable');

LanguageDropdownField.php (Line 96)

if ($id && $class && class_exists($class) && Object::has_extension($class, 'Translatable')) {

Translatable.php (Line 498)

return Object::has_extension('SiteTree', 'Translatable');

Translatable.php (Line 1457)

if(!Object::has_extension('SiteTree', 'Translatable') || !class_exists('SiteTree')) return false;

Regards,
Jose A.

@wilr wilr added a commit that referenced this pull request Feb 1, 2013

@wilr wilr Merge pull request #92 from Josua2012/master
FIX: Update has_extension calls.
0f2f463

@wilr wilr merged commit 0f2f463 into silverstripe:master Feb 1, 2013

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment