mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Merge pull request #341 from kijin/pr/addon-blacklist-compatibility
member_communication 애드온이 켜져 있는 것처럼 훼이크
This commit is contained in:
commit
f44c02b558
1 changed files with 15 additions and 0 deletions
|
|
@ -451,6 +451,21 @@ class addonAdminModel extends addon
|
||||||
*/
|
*/
|
||||||
function isActivatedAddon($addon, $site_srl = 0, $type = "pc", $gtype = 'site')
|
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 = new stdClass();
|
||||||
$args->addon = $addon;
|
$args->addon = $addon;
|
||||||
if($gtype == 'global')
|
if($gtype == 'global')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue