Merge pull request #341 from kijin/pr/addon-blacklist-compatibility

member_communication 애드온이 켜져 있는 것처럼 훼이크
This commit is contained in:
Kijin Sung 2016-03-06 20:43:39 +09:00
commit f44c02b558

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')