Skip to content
This repository was archived by the owner on Jul 13, 2018. It is now read-only.

Commit 1f2dc1e

Browse files
committed
Make remote URL sprintf'd in
1 parent af6169e commit 1f2dc1e

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

fields/authenticationinfo.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ protected function getInput()
4545
*/
4646
protected function getLabel()
4747
{
48-
return '<p>' . JText::_('MOD_TWEETDISPLAYBACK_AUTHENTICATION_SETUP_INSTRUCTIONS') . '</p>';
48+
$string = JText::sprintf(
49+
'MOD_TWEETDISPLAYBACK_AUTHENTICATION_SETUP_INSTRUCTIONS',
50+
JHtml::_(
51+
'link',
52+
'https://www.babdev.com/extensions/tweet-display-back/22-tutorials/158-3-1-set-up-user-authentication',
53+
'https://www.babdev.com/extensions/tweet-display-back/22-tutorials/158-3-1-set-up-user-authentication',
54+
['target' => '_blank']
55+
)
56+
);
57+
58+
return '<p>' . $string . '</p>';
4959
}
5060
}

language/en-GB/en-GB.mod_tweetdisplayback.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ COM_MODULES_TWEET_FIELDSET_LABEL="Tweet Display Settings"
1313
COM_MODULES_TWITTER_FIELDSET_LABEL="Twitter Information"
1414
COM_MODULES_VERSION_FIELDSET_LABEL="Version Information"
1515
MOD_TWEETDISPLAYBACK="Tweet Display Back"
16-
MOD_TWEETDISPLAYBACK_AUTHENTICATION_SETUP_INSTRUCTIONS="The current version of the Twitter API requires users to be authenticated to twitter.com in order to use tools such as Tweet Display Back to retrieve data. Two authentication options are provided here: providing a consumer key or a remote URL. To learn more about the authentication setup, please visit <a href=\"https://www.babdev.com/extensions/tweet-display-back/22-tutorials/158-3-1-set-up-user-authentication\" target=\"_blank\">https://www.babdev.com/extensions/tweet-display-back/22-tutorials/158-3-1-set-up-user-authentication</a>."
16+
; A <a> element with the remote URL is merged into this string
17+
MOD_TWEETDISPLAYBACK_AUTHENTICATION_SETUP_INSTRUCTIONS="The current version of the Twitter API requires users to be authenticated to twitter.com in order to use tools such as Tweet Display Back to retrieve data. Two authentication options are provided here: providing a consumer key or a remote URL. To learn more about the authentication setup, please visit %s."
1718
MOD_TWEETDISPLAYBACK_ERROR_NO_CONNECTORS="Unable to connect to the Twitter API."
1819
MOD_TWEETDISPLAYBACK_ERROR_NOHITS="This user has reached the maximum allowable queries against Twitter's API for the hour."
1920
MOD_TWEETDISPLAYBACK_ERROR_UNABLETOLOAD="Due to an error, potentially a timed-out connection to Twitter, this user's tweets are unable to be displayed."

0 commit comments

Comments
 (0)