Unneeded "info" messages removed

This commit is contained in:
Michael 2020-07-23 03:48:52 +00:00
parent 31bd1a1ba0
commit 3f84caeec5
37 changed files with 6 additions and 65 deletions

View file

@ -241,9 +241,9 @@ function twitter_settings_post(App $a)
DI::pConfig()->set(local_user(), 'twitter', 'oauthsecret', $token['oauth_token_secret']);
DI::pConfig()->set(local_user(), 'twitter', 'post', 1);
} catch(Exception $e) {
info($e->getMessage());
notice($e->getMessage());
} catch(TwitterOAuthException $e) {
info($e->getMessage());
notice($e->getMessage());
}
// reload the Addon Settings page, if we don't do it see Bug #42
DI::baseUrl()->redirect('settings/connectors');
@ -259,8 +259,6 @@ function twitter_settings_post(App $a)
if (!intval($_POST['twitter-mirror'])) {
DI::pConfig()->delete(local_user(), 'twitter', 'lastid');
}
info(DI::l10n()->t('Twitter settings updated.') . EOL);
}
}
}
@ -737,7 +735,6 @@ function twitter_addon_admin_post(App $a)
$consumersecret = !empty($_POST['consumersecret']) ? Strings::escapeTags(trim($_POST['consumersecret'])) : '';
DI::config()->set('twitter', 'consumerkey', $consumerkey);
DI::config()->set('twitter', 'consumersecret', $consumersecret);
info(DI::l10n()->t('Settings updated.') . EOL);
}
function twitter_addon_admin(App $a, &$o)