aboutsummaryrefslogtreecommitdiff
path: root/mod/twitter_api/views/default
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-09-17 11:43:08 -0400
committercash <cash.costello@gmail.com>2011-09-17 11:43:08 -0400
commit2fb0c67f7a90f7f6d3f6f4e628225f85452f6191 (patch)
tree212039ce8d39480ebec31b67cef0cabdaafd6076 /mod/twitter_api/views/default
parentc6b831196f6d6e144c0a4a7d3a4289a133e5b4ce (diff)
downloadelgg-2fb0c67f7a90f7f6d3f6f4e628225f85452f6191.tar.gz
elgg-2fb0c67f7a90f7f6d3f6f4e628225f85452f6191.tar.bz2
Fixes #3824 fixed deprecation warnings for plugin settings and usersettings
Diffstat (limited to 'mod/twitter_api/views/default')
-rw-r--r--mod/twitter_api/views/default/plugins/twitter_api/usersettings.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/twitter_api/views/default/plugins/twitter_api/usersettings.php b/mod/twitter_api/views/default/plugins/twitter_api/usersettings.php
index acb8d9af5..65d04b883 100644
--- a/mod/twitter_api/views/default/plugins/twitter_api/usersettings.php
+++ b/mod/twitter_api/views/default/plugins/twitter_api/usersettings.php
@@ -5,9 +5,9 @@
$user = elgg_get_logged_in_user_entity();
$user_guid = $user->getGUID();
-$twitter_name = get_plugin_usersetting('twitter_name', $user_guid, 'twitter_api');
-$access_key = get_plugin_usersetting('access_key', $user_guid, 'twitter_api');
-$access_secret = get_plugin_usersetting('access_secret', $user_guid, 'twitter_api');
+$twitter_name = elgg_get_plugin_user_setting('twitter_name', $user_guid, 'twitter_api');
+$access_key = elgg_get_plugin_user_setting('access_key', $user_guid, 'twitter_api');
+$access_secret = elgg_get_plugin_user_setting('access_secret', $user_guid, 'twitter_api');
$site_name = elgg_get_site_entity()->name;
echo '<div>' . elgg_echo('twitter_api:usersettings:description', array($site_name)) . '</div>';
@@ -21,7 +21,7 @@ if (!$access_key || !$access_secret) {
// let them disassociate their account.
if ($user->email) {
$url = elgg_get_site_url() . "twitter_api/revoke";
- echo '<div class="twitter_anywhere">' . elgg_echo('twitter_api:usersettings:authorized', array($site_name, $twitter_name)) . '</div>';
+ echo '<div>' . elgg_echo('twitter_api:usersettings:authorized', array($site_name, $twitter_name)) . '</div>';
echo '<div>' . sprintf(elgg_echo('twitter_api:usersettings:revoke'), $url) . '</div>';
} else {
echo elgg_echo('twitter_api:usersettings:cannot_revoke', array(elgg_normalize_url('twitter_api/interstitial')));