projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a99ddd
)
Update to is_a function instead of is_subclass_of
author
Tim Mallezie
<tim.mallezie@chiro.be>
Tue, 10 Mar 2015 19:51:27 +0000
(20:51 +0100)
committer
Tim Mallezie
<tim.mallezie@chiro.be>
Tue, 10 Mar 2015 19:51:27 +0000
(20:51 +0100)
CRM/Contact/Form/Location.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contact/Form/Location.php
b/CRM/Contact/Form/Location.php
index 2c539a21ebf9e14c17408fbae1fbde6e351a272d..16544e922f4bfd6ae9fa1d0ac31ccb3ca37bcd4b 100644
(file)
--- a/
CRM/Contact/Form/Location.php
+++ b/
CRM/Contact/Form/Location.php
@@
-54,12
+54,8
@@
class CRM_Contact_Form_Location {
}
$className = CRM_Utils_System::getClassName($form);
- if (in_array($className, array(
- 'CRM_Event_Form_ManageEvent_Location',
- 'CRM_Contact_Form_Domain',
- ))
- || is_subclass_of($className, 'CRM_Event_Form_ManageEvent_Location')
- || is_subclass_of($className, 'CRM_Contact_Form_Domain')) {
+ if (is_a($className, 'CRM_Event_Form_ManageEvent_Location')
+ || is_a($className, 'CRM_Contact_Form_Domain')) {
$form->_blocks = array(
'Address' => ts('Address'),
'Email' => ts('Email'),