X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=fromgplus%2Ffromgplus.php;h=d2b496baf8312dd5b1bf1d038c2581c36bb0576c;hb=51b364aed46bebbf495cf552e7e030ad5e4f04cb;hp=ecdf7656942c77208b4a9d054cfa0e9b28b4281c;hpb=503ec7d072a3d9cf8d394e97fa44a71589d16e37;p=friendica-addons.git diff --git a/fromgplus/fromgplus.php b/fromgplus/fromgplus.php index ecdf7656..d2b496ba 100644 --- a/fromgplus/fromgplus.php +++ b/fromgplus/fromgplus.php @@ -30,15 +30,20 @@ function fromgplus_addon_settings(&$a,&$s) { if(! local_user()) return; + // If "gpluspost" is installed as well, then the settings are displayed there + $result = q("SELECT `installed` FROM `addon` WHERE `name` = 'gpluspost' AND `installed`"); + if (count($result) > 0) + return; + $enable_checked = (intval(get_pconfig(local_user(),'fromgplus','enable')) ? ' checked="checked"' : ''); $account = get_pconfig(local_user(),'fromgplus','account'); $s .= ''; - $s .= '

' . t('Google+ Mirroring').'

'; + $s .= '

'. t('Google+ Mirror').'

'; $s .= '
'; $s .= '