From: Michael J. Rubinsky Date: Mon, 4 Jan 2010 17:49:27 +0000 (-0500) Subject: Give link to the page needed to setup the account if we are going to warn about it.. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3e9d9c52a5ed5ab336fe0e1105290023697d1ae1;p=horde.git Give link to the page needed to setup the account if we are going to warn about it.. --- diff --git a/horde/lib/Block/twitter_timeline.php b/horde/lib/Block/twitter_timeline.php index 168de7c2c..e94a126a0 100644 --- a/horde/lib/Block/twitter_timeline.php +++ b/horde/lib/Block/twitter_timeline.php @@ -274,9 +274,9 @@ EOF; // Using OAuth but make sure the user has gotten a token $token = unserialize($GLOBALS['prefs']->getValue('twitter')); if (empty($token['key']) && empty($token['secret'])) { - // No token - should we allow the user to use http basic if - // horde is configured to use oauth? - throw new Horde_Exception(_("You must give Horde access to your Twitter account.")); + // No token - try HTTP Basic Auth + $pref_link = Horde::link(Horde::url('services/twitter.php', true)); + throw new Horde_Exception(sprintf(_("You have not properly connected your Twitter account with Horde. You should check your Twitter settings in your %s."), $pref_link . _("preferences") . '')); } $consumer_key = $GLOBALS['conf']['twitter']['key'];