From: Michael Vogel Date: Thu, 24 Apr 2014 08:28:23 +0000 (+0200) Subject: Google+: Option to use the commercial script "postToGooglePlus.php", Settings of... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7521977ab8cb5586e9d68fa70cfdb0f340f00e71;p=friendica-addons.git Google+: Option to use the commercial script "postToGooglePlus.php", Settings of "fromgplus" are shown inside of "gpluspost" when activated. --- diff --git a/fromgplus/fromgplus.php b/fromgplus/fromgplus.php index ca26ce2b..7b25fd3d 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+ Mirror').'

'; + $s .= '

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

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