diff options
author | Friendika <info@friendika.com> | 2011-06-30 15:33:01 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-30 15:33:01 -0700 |
commit | b03df35b02907a78a5787654a57e73810e707f6a (patch) | |
tree | 6b5fa7024683b26ae0bf8c63a9177cd7ef20fe00 /addon/twitter/twitter.php | |
parent | 42a6bc81e9f6ddea5ac61e4b79a75515028dcfae (diff) | |
parent | 4f1213b69f12e6df2350cd21c6de06128a03411d (diff) | |
download | volse-hubzilla-b03df35b02907a78a5787654a57e73810e707f6a.tar.gz volse-hubzilla-b03df35b02907a78a5787654a57e73810e707f6a.tar.bz2 volse-hubzilla-b03df35b02907a78a5787654a57e73810e707f6a.zip |
Merge branch 'pull'
Diffstat (limited to 'addon/twitter/twitter.php')
-rw-r--r-- | addon/twitter/twitter.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/addon/twitter/twitter.php b/addon/twitter/twitter.php index 7829799bc..183c71126 100644 --- a/addon/twitter/twitter.php +++ b/addon/twitter/twitter.php @@ -76,6 +76,9 @@ function twitter_jot_nets(&$a,&$b) { function twitter_settings_post ($a,$post) { if(! local_user()) return; + // don't check twitter settings if twitter submit button is not clicked + if (!x($_POST,'twitter-submit')) return; + if (isset($_POST['twitter-disconnect'])) { /*** * if the twitter-disconnect checkbox is set, clear the OAuth key/secret pair @@ -159,7 +162,7 @@ function twitter_settings(&$a,&$s) { $s .= '<input id="twitter-token" type="hidden" name="twitter-token" value="'.$token.'" />'; $s .= '<input id="twitter-token2" type="hidden" name="twitter-token2" value="'.$request_token['oauth_token_secret'].'" />'; $s .= '</div><div class="clear"></div>'; - $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="submit" class="settings-submit" value="' . t('Submit') . '" /></div>'; + $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="twitter-submit" class="settings-submit" value="' . t('Submit') . '" /></div>'; } else { /*** * we have an OAuth key / secret pair for the user @@ -178,7 +181,7 @@ function twitter_settings(&$a,&$s) { $s .= '<label id="twitter-disconnect-label" for="twitter-disconnect">'. t('Clear OAuth configuration') .'</label>'; $s .= '<input id="twitter-disconnect" type="checkbox" name="twitter-disconnect" value="1" />'; $s .= '</div><div class="clear"></div>'; - $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="submit" class="settings-submit" value="' . t('Submit') . '" /></div>'; + $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="twitter-submit" class="settings-submit" value="' . t('Submit') . '" /></div>'; } } $s .= '</div><div class="clear"></div></div>'; |