diff --git a/lib/YConverter/Converter.php b/lib/YConverter/Converter.php index 8083be4..4fc75f4 100644 --- a/lib/YConverter/Converter.php +++ b/lib/YConverter/Converter.php @@ -203,6 +203,15 @@ public function boot() ['seo42\s*::\s*getLangCode\((.*?)\)' => 'rex_clang::getCurrent()->getCode()'], ['seo42\s*::\s*getBaseUrl\((.*?)\)' => 'rex::getServer()'], ] + ], [ + // Community Addon -> YCom + 'replaces' => [ + ['checkperm\(' => 'checkPerm('], + ['rex_addon::get\((["']{1})community$1\)->isActivated\(\)' => 'rex_addon::get(\'ycom\')->isActivated()'], + ['rex_addon::get\((["']{1})community$1\)->isAvailable\(\)' => 'rex_addon::get(\'ycom\')->isAvailable()'], + ['rex_addon::get\((["']{1})community$1\)->isInstalled\(\)' => 'rex_addon::get(\'ycom\')->isInstalled()'], + ['rex_com_auth\s*::' => 'rex_ycom_auth::'], + ] ], ];