Do not activate blacklisted addons

This commit is contained in:
Kijin Sung 2016-02-23 21:51:18 +09:00
parent e335aa477e
commit e0dba3a340
4 changed files with 25 additions and 10 deletions

View file

@ -84,7 +84,7 @@ class addonController extends addon
$addon_list = $oAddonModel->getInsertedAddons($site_srl, $gtype);
foreach($addon_list as $addon => $val)
{
if($val->addon == "smartphone"
if($val->addon == "smartphone" || Context::isBlacklistedPlugin($addon)
|| ($type == "pc" && $val->is_used != 'Y')
|| ($type == "mobile" && $val->is_used_m != 'Y')
|| ($gtype == 'global' && $val->is_fixed != 'Y')