Always treat member_communication addon as activated

This commit is contained in:
Kijin Sung 2016-03-06 14:57:40 +09:00
parent a1fc0e3c3b
commit c0210dc524

View file

@ -451,6 +451,21 @@ class addonAdminModel extends addon
*/
function isActivatedAddon($addon, $site_srl = 0, $type = "pc", $gtype = 'site')
{
$always_return_true_for_compatibility = array(
'member_communication' => true,
);
$always_return_false_for_compatibility = array(
);
if(isset($always_return_true_for_compatibility[$addon]))
{
return true;
}
if(isset($always_return_false_for_compatibility[$addon]))
{
return false;
}
$args = new stdClass();
$args->addon = $addon;
if($gtype == 'global')