mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Do not activate blacklisted addons
This commit is contained in:
parent
e335aa477e
commit
e0dba3a340
4 changed files with 25 additions and 10 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue