forked from friendica/friendica-addons
Simplified status display
This commit is contained in:
parent
fb9e6e5df6
commit
3d6748eaf7
|
@ -117,12 +117,10 @@ function twitter_settings(array &$data)
|
||||||
$access_secret = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'twitter', 'access_secret');
|
$access_secret = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'twitter', 'access_secret');
|
||||||
|
|
||||||
$last_status = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'twitter', 'last_status');
|
$last_status = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'twitter', 'last_status');
|
||||||
if (empty($last_status)) {
|
if (!empty($last_status['code'])) {
|
||||||
$status = DI::l10n()->t('No status.');
|
|
||||||
} elseif (!empty($last_status['code'])) {
|
|
||||||
$status = print_r($last_status, true);
|
$status = print_r($last_status, true);
|
||||||
} else {
|
} else {
|
||||||
$status = print_r($last_status, true);
|
$status = DI::l10n()->t('No status.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$t = Renderer::getMarkupTemplate('connector_settings.tpl', 'addon/twitter/');
|
$t = Renderer::getMarkupTemplate('connector_settings.tpl', 'addon/twitter/');
|
||||||
|
|
Loading…
Reference in a new issue