aboutsummaryrefslogtreecommitdiff
path: root/mod/twitterservice/views/default/usersettings
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 12:07:28 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 12:07:28 +0000
commit755947e111d89d6babcd0f070d91c2245e22a809 (patch)
tree284e62a3f1cfca8f9d23e88680544cde4f5aea79 /mod/twitterservice/views/default/usersettings
parent949a233076ec18f86e60f90a7a8837cb422664af (diff)
downloadelgg-755947e111d89d6babcd0f070d91c2245e22a809.tar.gz
elgg-755947e111d89d6babcd0f070d91c2245e22a809.tar.bz2
Refs #2428 just a few more CONFIG uses left to be replaced
git-svn-id: http://code.elgg.org/elgg/trunk@8000 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/twitterservice/views/default/usersettings')
-rw-r--r--mod/twitterservice/views/default/usersettings/twitterservice/edit.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/twitterservice/views/default/usersettings/twitterservice/edit.php b/mod/twitterservice/views/default/usersettings/twitterservice/edit.php
index eb5a50969..d3083d48f 100644
--- a/mod/twitterservice/views/default/usersettings/twitterservice/edit.php
+++ b/mod/twitterservice/views/default/usersettings/twitterservice/edit.php
@@ -8,14 +8,15 @@ $twitter_name = get_plugin_usersetting('twitter_name', $user_id, 'twitterservice
$access_key = get_plugin_usersetting('access_key', $user_id, 'twitterservice');
$access_secret = get_plugin_usersetting('access_secret', $user_id, 'twitterservice');
-echo '<p>' . elgg_echo('twitterservice:usersettings:description') . '</p>';
+$site_name = elgg_get_site_entity()->name;
+echo '<p>' . elgg_echo('twitterservice:usersettings:description', array($site_name)) . '</p>';
if (!$access_key || !$access_secret) {
// send user off to validate account
$request_link = twitterservice_get_authorize_url();
- echo '<p>' . sprintf(elgg_echo('twitterservice:usersettings:request'), $request_link) . '</p>';
+ echo '<p>' . elgg_echo('twitterservice:usersettings:request', array($request_link, $site_name)) . '</p>';
} else {
$url = elgg_get_site_url() . "pg/twitterservice/revoke";
- echo '<p class="twitter_anywhere">' . sprintf(elgg_echo('twitterservice:usersettings:authorized'), $twitter_name) . '</p>';
+ echo '<p class="twitter_anywhere">' . elgg_echo('twitterservice:usersettings:authorized', array($site_name, $twitter_name)) . '</p>';
echo '<p>' . sprintf(elgg_echo('twitterservice:usersettings:revoke'), $url) . '</p>';
}