summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-12-02 12:42:58 +0100
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-12-02 12:42:58 +0100
commitc4f67f76476a4ca608bcf2fc860ad5ef889d269d (patch)
treebcf13dfd0f466097ad288e07d0a03ad1588b566e /plugins
parent086d6c9f36f69344f315f37fb9f8c9ff966a9629 (diff)
* fix typo in parameter notation
* add FIXME for unused message * remove superfluous whitespace
Diffstat (limited to 'plugins')
-rw-r--r--plugins/FacebookBridge/actions/facebooksettings.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/plugins/FacebookBridge/actions/facebooksettings.php b/plugins/FacebookBridge/actions/facebooksettings.php
index b9fa7ba2a..6576e2041 100644
--- a/plugins/FacebookBridge/actions/facebooksettings.php
+++ b/plugins/FacebookBridge/actions/facebooksettings.php
@@ -42,7 +42,6 @@ if (!defined('STATUSNET')) {
* @see SettingsAction
*/
class FacebooksettingsAction extends ConnectSettingsAction {
-
private $facebook; // Facebook PHP-SDK client obj
private $flink;
private $user;
@@ -121,7 +120,6 @@ class FacebooksettingsAction extends ConnectSettingsAction {
* @return void
*/
function showContent() {
-
if (!empty($this->flink)) {
$this->elementStart(
@@ -194,7 +192,6 @@ class FacebooksettingsAction extends ConnectSettingsAction {
$this->element('legend', null, _m('Disconnect my account from Facebook'));
if (empty($this->user->password)) {
-
$this->elementStart('p', array('class' => 'form_guide'));
$msg = sprintf(
@@ -207,13 +204,14 @@ class FacebooksettingsAction extends ConnectSettingsAction {
$this->raw(common_markup_to_html($msg));
$this->elementEnd('p');
-
} else {
-
+ // @todo FIXME: i18n: This message is not being used.
$msg = sprintf(
+ // TRANS: Message displayed when initiating disconnect of a StatusNet user
+ // TRANS: from a Facebook account. %1$s is the StatusNet site name.
_m(
'Keep your %1$s account but disconnect from Facebook. ' .
- 'You\'ll use your 1%$s password to log in.'
+ 'You\'ll use your %1$s password to log in.'
),
common_config('site', 'name')
);
@@ -234,7 +232,6 @@ class FacebooksettingsAction extends ConnectSettingsAction {
* @return void
*/
function saveSettings() {
-
$noticesync = $this->boolean('noticesync');
$replysync = $this->boolean('replysync');
@@ -255,7 +252,6 @@ class FacebooksettingsAction extends ConnectSettingsAction {
* and shows the user a success message if all goes well.
*/
function disconnect() {
-
$result = $this->flink->delete();
$this->flink = null;
@@ -267,5 +263,4 @@ class FacebooksettingsAction extends ConnectSettingsAction {
$this->showForm(_m('You have disconnected from Facebook.'), true);
}
-
}